20 questions
2
votes
1
answer
87
views
Replace strings in files when using a .NET item template
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 "...
-1
votes
1
answer
40
views
Git Azure DevOps URL Not Supported Error When Running dotnet new -i <Azure DevOps Repo URL> (Even with PAT)
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 ...
1
vote
1
answer
41
views
Javascript errors shown as a fullpage on Visual Studio. How to disable?
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 ...
1
vote
2
answers
211
views
Issues running program in Visual Studio Code
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 ...
2
votes
1
answer
2k
views
How to execute a postaction script from a dotnet new template
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 ...
3
votes
1
answer
14k
views
How can I generate .csproj Project file only in C# Console App?
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 ...
6
votes
1
answer
1k
views
How do I add a new resx file to my project using the dotnet CLI or VS Code?
How do I add a new .resx (plus .Designer.cs) file to my project using the dotnet CLI or VS Code?
1
vote
1
answer
2k
views
dotnet new target windows specific framework
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 --...
0
votes
2
answers
991
views
How to create a ASP.NET Core Project in VB.NET language using dotnet cli command?
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. ...
4
votes
1
answer
2k
views
ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY on dotnet core 3.1 react project
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
...