C
C#2y ago
Messiah

❔ dotnet start, and profiles

When I run dotnet run, which profile from launchSettings.json is chosen? There are so many ways to set profiles in .net, I'm confused.
4 Replies
Messiah
Messiah2y ago
like, what's the point of settings up kestrel endpoints if I'm gonna set up the application urls afterwards anyways? the docs are awful at explaining this
lycian
lycian2y ago
Best practice would be to specify with --launch-profile otherwise it chooses the first it finds that qualifies as "default" from this check: https://github.com/dotnet/sdk/blob/be146734f2320ee3b0bb79457d1e8e6b21281fc8/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/LaunchSettingsManager.cs#L129
GitHub
sdk/LaunchSettingsManager.cs at be146734f2320ee3b0bb79457d1e8e6b212...
Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI - sdk/LaunchSettingsManager.cs at be146734f2320ee3b0bb79457d1e8e6b21281fc8 · dotnet/sdk
lycian
lycian2y ago
which I think just ends up being anything with a CommandName of "Project"
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ integrate an UI test with playwright on a Blazor ServerCan someone help me? I try to use this code to integrate an UI test with playwright on a blazor serv❔ LINQ distinct from 2 lists preserving order as soon as they are seenI have 2 lists like this 1: {1, 2, 3} 2: {1, 3, 4} what's the LINQ distinct method for them that pro❔ Process.Start() Retroarch Emulator C#Hello, I need some help with a code, I'm trying to run the retroarch emulator with the Process.Start❔ binding Command in user control button problemThe problem is that nothing is happening but when i'm making normal button in my main window with Co❔ Date Formatting in C#I have an incoming date of string as 202302220811 and would like to convert this to 02/22/23 08:11 ❔ System.Reflection.ReflectionTypeLoadException: „Unable to load one or more of the requested types.``` System.Reflection.ReflectionTypeLoadException: „Unable to load one or more of the requested type❔ use of args in methodcan someone explain the specific context in which we declare args in the methods? e.g. for this met✅ How to change of property without setter?I have `ObjectCollection` with different objects: `TableCell`, `TextObject` etc. What I want: find ✅ Typed delegates in maps (LanguageExt)Hello. I'm currently doing some functional programming with the LanguageExt package. I've been going❔ How to apply filter high pass mask to bitmap in c#?Please drop me the code..I want to apply high pass mask into bitmap so I could convert blurry text i