Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
87 views

I am creating my first template for a .NET solution. For the most part it works, but I have a string "MyService" at some places in the Program.cs that I would like to replace with "...
Myrkjartan's user avatar
-1 votes
1 answer
40 views

Problem: I'm trying to install a custom template using the dotnet new -i command <Azure DevOps Repo URL> from a private Azure DevOps Git repository, but I’m encountering the error: 'url' is not ...
SBAT's user avatar
  • 49
1 vote
1 answer
41 views

So I am into React just lately and trying it on visual studio with a React app and C#. But it is a bit annoying that Javascript errors are shown as a full page instead of showing it on console. Is ...
fared's user avatar
  • 172
1 vote
2 answers
211 views

I'm attempting to run a WinExe with <UseWPF>true</UseWPF>, but it is not even running a simple Hello World program. I'm not sure what's wrong at this point, the only clue is this inner ...
Theodore Kidd's user avatar
2 votes
1 answer
2k views

I'm trying to execute a simple script just after a project is generated from a dotnet template. The script will try to create a new file called new.txt in the generated project's root directory. Some ...
billy bud's user avatar
  • 131
3 votes
1 answer
14k views

I already have a Program.cs in the folder/directory and no other files. When I do dotnet new console, it won't let me create it unless I use --force to overwrite the Program.cs. I think I just need to ...
zawhtut's user avatar
  • 269
6 votes
1 answer
1k views

How do I add a new .resx (plus .Designer.cs) file to my project using the dotnet CLI or VS Code?
bitbonk's user avatar
  • 49.9k
1 vote
1 answer
2k views

Is there any way to get the dotnet new to use a platform specific target such as net6.0-windows10.0.19041.0? This is what I'd like to be able to do: dotnet new console --name HelloWindowsApi --...
sipsorcery's user avatar
  • 30.9k
0 votes
2 answers
991 views

I have migrated the project from Dot.Net-Framework 4.7.2 to Asp.Net-Core 3.1 with VB.NET language. I have checked in Microsoft link below, there is no CLI Command for VB.NET in Asp.Net Core templates. ...
Karthic G's user avatar
  • 1,202
4 votes
1 answer
2k views

I started a new dotnet core with react project on my Windows 8.1 machine. dotnet new react my-project When I started debugging in chrome at https://localhost:5001/, I got the following error ...
Maciek's user avatar
  • 181