Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 22 days ago.
Improve this question
So I upgraded my project from .NET Framework 4.7.2 to .NET 7 using dotnet upgrade assistant
After I did so I noticed that my console application was being launched with 2 sets of (duplicate) arguments.
In an attempt to fix this, I deleted all the arguments from the launch configuration, alas a single set of arguments was still being passed, but since I don't know where they are coming from I cannot change them.
The "Command line arguments" section in the Launch Profiles window is empty.
I have searched for the parameters being passed in all the files in the solution folder and have come up with squat. Is there some launch config stored in windows user space that I need to delete or something?
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I have a problem. Every time that I clone a repo from GitHub I get all these errors. It's like VS doesn't recognize the system; and that is the cause of the problem, I think.
Image with errors.
I don't have this problem when I download the repo as a .zip file.
Does your system contain the SDK that matches the project.
For example, if it is a .NET 4.8 project, is this installed on your system?
You can inspect the project properties (.csproj file) for any hints:
Project Sdk
TargetFramework
Missing SDK's can be installed via https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm new to .NET Core MVC. I ran into an error but it doesn't show the problem due the environment variable.
I can't see how to change it to developer to get my error message in the browser. Not to forget, I'm using the VS Code IDE. Can anyone help with this?
Use Set command as follow (in command prompt):
set ASPNETCORE_ENVIRONMENT="Development"
You can also use Setx that have permanent effect while Set was affecting current command window only:
setx ASPNETCORE_ENVIRONMENT "Development"
After running Setx, close command window and open a new command window again.
For more info about hosting environment arguments see here. To see difference between Set and Setx, see here.
You will find it in launchSettings.json. Here you can set ASPNETCORE_ENVIRONMENT to DEVELOPMENT
You will find everything you need to know about working with multiple environments in .Net Core on: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments#startup-conventions
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I´m about to finish my apprenticeship soon and I must do a project. I want to write a logging-class/-dll for being used by other programs. I will use Xamarin for android (C#) because my company will use my dll in the future for their apps.
My dll should contain log levels, for example if the developer wants the full path of actions the user did, or only if an error occurs he wants go get the errordata. The dll should be able to track more than only the error/errormessage (->which leads us to the logging levels).
Does anyone have an idea how to get into this topic or has any testfiles for me?
There are already few open source logging frameworks available that work on Xamarin.Android, e.g https://serilog.net/
There is another logging framework called NLog (https://github.com/NLog/NLog/wiki/platform-support) You can refer these projects to build your own logging library
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I just have written a code in C# its a web browser using Visual Studio 2015
How do i make it compiled to .exe file and etc, like chrome mozilla etc.
Help appriciated.
Assuming you set up your project correctly in VS, it's Ctrl-Shft-B to compile. The exe / dll files should end up wherever specified by your Build Output directory. To learn about/change this see Change Build Output Directory.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
When ever run my installed solution the application name differ from my application. How can i show the application name in Task manager use visual studio 2013
This is easy to do. Task Manager reads it from the file version resource, an unmanaged resource embedded into a program. The equivalent in .NET is the FileVersionInfo.FileDescription property.
The easiest way to set it is with Project + Properties, Compile tab, Assembly Information button, Title field.