Questions tagged [dotnet-build]
32 questions
1
vote
1 answer
.net 5 dotnet build hangs on restore on Linux CentOS/Redhat
dotnet build hangs on restore after installing the .net 5 sdk on the machine. When I cancel it shows the following:
MSBUILD : error MSB4166: Child node "3" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/"…

Paul Carlton
- 2,785
- 2
- 24
- 42
1
vote
1 answer
How to skip Target in .csproj when --no-build is passed?
How can I stop commands in tags within a in my .csproj file from running when I run dotnet publish --no-build ...? Can I stop the entire section from being used?
Sample:

Justin Harris
- 1,969
- 2
- 23
- 33
0
votes
0 answers
What are the prerequisites for being able to use DotNetCoreCLI in an Azure Devops build pipeline?
I am creating a build pipeline for a .Net Framework 4.6 app (Yes I know it needs upgrading but that's the next step).
The tasks I am using to build, test and publish use DotNetCoreCLI tasks.
When running the build pipeline, this appears to fire the…

kevins1966
- 366
- 2
- 4
- 19
0
votes
0 answers
batch script for .net build project only updated directory in github
I just want to create batch script for which can get the latest commit updated files and directory of .NET project from GitHub and build only updated files and directory of micro-service
@echo off
set…

Bhagyesh_Devops
- 29
- 4
0
votes
0 answers
Where does runtimeconfig.json take includedFrameworks's version setting from?
I am investigating why my deployed dotnet core worker service app's runtimeconfig.json's includedFrameworks's version setting has changed from 3.1.31 to 3.1.32 for both
Microsoft.NETCore.App and Microsoft.AspNetCore.App entries.
What are the factors…

Veverke
- 9,208
- 4
- 51
- 95
0
votes
2 answers
NuGet NU1301 error during "dotnet-build", how to handle this?
I'm working on a C# project, having the following nuget.config file:
…

Dominique
- 16,450
- 15
- 56
- 112
0
votes
1 answer
I want to use dotnet restore command in "Execute Windows batch command" in my jenkins job but i am getting error
This is what i have put in "executr windows batch command" -
"dotnet restore
"C:\Users\nraut.SIPL.jenkins\workspace\WebNetAgentSln\WCFServiceGX.sln"
dotnet build "C:\Users\nraut.SIPL.jenkins\workspace\WebNetAgentSln\WCFServiceGX.sln" /t:rebuild…

Kunal
- 1
- 1
0
votes
1 answer
MsBuild vs dotnet build
When have I to use one or the other one?
I think that for net framework projects I’ve to use msbuild and for .net projects the dot net build but I don’t why

paolo terruccio
- 15
- 4
0
votes
1 answer
How to use artifacts for dotnet test
I would like to use the artifacts from my build stage for the test stage. But somehow the dotnet test command does not find any tests and instantly exits.
The dotnet restore & dotnet build command seem to work differently depending on whether…

Hille
- 2,123
- 22
- 39
0
votes
0 answers
Why is a generated file (via SourceGenerator) in .NET7-Windows csproj file not included, if a local namespace in xaml file is used?
The .NET7-Windows project with SourceGenerator e.g. MimeTypes is working.
When adding a local namespace to the WPF-UserControl the generated file is not included anymore.
How can I modify the project file, that all generated files are automatically…

Benny Bürger
- 49
- 8
0
votes
1 answer
How do I build & deploy a Photino.NET app so it does not display the console when it is ran?
I have read all of the Photino.NET documentation but it doesn't seem to mention how to build a final Release version.
Do you know the dotnet build parameters I need to provide?
Or, is there a code change I need to make to the Photino template which…

raddevus
- 8,142
- 7
- 66
- 87
0
votes
1 answer
Build output difference - VS Build vs dotnet build
I am trying to implement a pre-commit hook where I build the solution and check for any warnings. When I build the solution in VS I am getting warning but where as when I run dotnet build using powershell I get zero warnings.
Below is the CLI …

Arjun Menon
- 553
- 2
- 8
- 29
0
votes
0 answers
Default Port for Dot Net 6 not running Angular application
I am working on a Dot Net 6 and Angular 13 based application. When I run application from Visual Studio, it works fine and open the desired port for API and Front-End but when I publish this application using DotNet command from Visual Studio Code,…

Anil C
- 1,045
- 3
- 16
- 38
0
votes
1 answer
Dotnet CLI webapi Project Build Failure - Error MSB3021
Machine: Windows 10.
SDK: 5.0.401
Project Type: webapi
Issue: Running dotnet build produces the following...
Things I've already tried:
resmon.exe => to look for either the apphost.exe handle or the API.exe handle. None found.
Reinstalled VS…

Arnie
- 212
- 1
- 2
- 11
0
votes
0 answers
VS IDE can build, but run "dotnet build" command then got ".NETFramework,Version=v5.0 were not found"
My visual studio pro 2019 is v16.11.2. I can build my mvc project without any issue by pressing build button, and run this project very well. Of cause, I've installed .net sdk 5.0.400 on my win10
Currently I'm studying docker, so I need to run…

Miken
- 9
- 2