Questions tagged [dotnet-sdk]
81 questions
1
vote
0 answers
What is the difference in publishing dotnet apps for ubuntu using specific ubuntu RIDs instead of non-distribution specific linux-x64?
What difference does it make, if any, publishing a dotnet application for ubuntu using, say,
dotnet publish [...] -r ubuntu.20.04
instead of
dotnet publish [...] -r linux-x64
Performance tweaks, better support... ?! can't answer that from docs.
I…

Veverke
- 9,208
- 4
- 51
- 95
1
vote
1 answer
dotnet restore solution is restoring projects like they are .net framework projects when called from GitHub Actions
I have a solution with many projects, and we are migrating to .NET SDK style projects, but for now we have a mix of .NET framework style projects and .NET SDK style projects.
We are also migrating to GitHub actions, and this solution was building…

TJ Rockefeller
- 3,178
- 17
- 43
1
vote
1 answer
Generate localized string resources when building with dotnet sdk
I'm trying to convert an old-style Visual Studio 2015 .net framework 4.8 project to an sdk-style project in VS 2019. Works quite well so far, but I'm struggling with the following requirements:
We have localized text resources in restext format,…

Torsten Crass
- 11
- 2
1
vote
1 answer
Setting multiple .NET SDK versions in global.json
According to MS docs it is possible to pin down the version of SDK used in global.json file:
{
"sdk": {
"version": "6.0.300",
"rollForward": "latestFeature"
}
}
In my repo I have some projects using .NET6 and some other still targeting…

LA.27
- 1,888
- 19
- 35
1
vote
1 answer
Azure Pipeline fails on `dotnet build` with error "command or file was not found"
Recently I had Azure Pipeline builds start failing, without any changes to my build scripts/yaml. The errors are as follows but they're still pretty light on the…

Daniel Little
- 16,975
- 12
- 69
- 93
1
vote
1 answer
Running dotnet in a Docker container fails on Linux because of relative path
I have a Dockerfile that builds and publishes an application to a container like this
FROM mcr.microsoft.com/dotnet/sdk:5.0 as builder
COPY . ./
RUN dotnet publish Project -c Release -o ./publish
FROM mcr.microsoft.com/dotnet/runtime:5.0 as…

Sorashi
- 931
- 2
- 9
- 32
1
vote
1 answer
How do I fix the "Error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found."?
We have searched for a solution to this problem and have had no success...there are plenty of similar errors reported here on around the web and none of the suggestions have worked.
We have a web job project in tfs that compiles fine locally but…

DevilDog
- 413
- 2
- 7
- 16
1
vote
1 answer
How to install Microsoft.DotNet.Arcade.Sdk into the dotnet sdk folder?
I know this is going to sound like a silly question but I am trying to build a solution that requires Microsoft.DotNet.Arcade.Sdk 6.0.0 to be installed inside "C:\Program Files\dotnet\sdk\5.0.101\Sdks\Microsoft.DotNet.Arcade.Sdk\Sdk".
I can see…

goroth
- 2,510
- 5
- 35
- 66
1
vote
0 answers
Why does my .net sdk style project show so many files in Solution Explorer?
I'm a newb to the SDK style project format
I only have a couple of NuGet PackageReferences. Everything was behaving normally up until some point when I think I had messed with my supported platforms / build configurations.
The build succeeds. But…

bkwdesign
- 1,953
- 2
- 28
- 50
1
vote
2 answers
Visual Studio 2019 .NET SDK not found
Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install Operating System: Windows Home x64
Version: 3.1.401
Visual Studio 2019
I am getting an issue with installing the .NET SDK, at first when I went into Visual…
user12624402
1
vote
0 answers
How to build .NET Core 3.1 console app with win-x64 runtime on linux using only local package source?
I have a special use-case where I need to be able to build a clean repository when I'm offline. I'm allowed to attach a local nuget feed and have a standard docker image locally available.
The build container is based on linux.
The solution I'm…

Rickard Fredriksson
- 31
- 6
1
vote
1 answer
Publish-Module fails with NuGet.Build.Tasks.Pack.targets(198,5) error : Index was outside the bounds of the array
I've upgraded to dotnet sdk version 3.1 and am trying to publish my powershell module. I am using powershell 5.1.
I run the command:
Publish-Module -Path "C:\sources\myModules\InstallationUtils\" -NuGetApiKey "xxxxxxx" -Repository…

Dai Bok
- 3,451
- 2
- 53
- 70
1
vote
0 answers
Which generated assets should I check in to lock down my package versions in dotnet?
In a .NET Core project, dotnet restore generates a bunch of files in the /obj folder of each project. So, with a solution with the following project files (where FooLibrary is a library targeting e.g. netstandard2.0 and BarApp is a console app…

Tomas Aschan
- 58,548
- 56
- 243
- 402
1
vote
0 answers
remove dotnet-sdk-2.0.0 in ubuntu - nuget fallback folder
I have installed on Ubuntu 16.04 the dotnet-sdk-2.0.0 but the I wanted to remove it and on my hard disk is left a folder with 1Gb of data (/usr/share/dotnet/sdk/NuGetFallbackFolder).
Can I just delete it from the hard disk with admin permission?
Is…

Chris
- 89
- 1
- 8
1
vote
1 answer
How to include an item in BuiltProjectOutputGroup
I have a custom project system, that uses the standard net sdk targets.
During the build, I produce an extra zip file. I'd like this extra file to be included in an output group, so that when I query my projects output groups (from vs) it shows…

Darrell
- 1,905
- 23
- 31