dotnet-sdk

MSBuild on Centos returns “The imported project ”/Microsoft.Cpp.Default.props“ was not found”

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 11:41:06
问题 I'm trying to build a VS project in CentOS. I installed dotnet-sdk-2.2 via yum install dotnet-sdk-2.2 . When executing dotnet msbuild myproj.vcxproj I get: Microsoft (R) Build Engine version 16.1.76+g14b0a930a7 for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. mtproj.vcxproj(19,3): error MSB4019: The imported project "/Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Googling

Msbuild v15 can't resolve the variables of metadata of nuspec file

[亡魂溺海] 提交于 2019-12-19 07:53:48
问题 I know Since the release of msbuild 15 (vs 2017) that NuGet is now fully integrated into MSBuild. I have a nuspec file with defining variables of package properties like: <metadata> <id>$id$</id> <version>$version$</version> <authors>$authors$</authors> ... </metadata> The nuspec file is located in the same folder of the project. When using nuget tool to create the package , it works fine. nuget pack When using msbuild v15, it raise an exception. run the command: msbuild -version Microsoft (R

Msbuild v15 can't resolve the variables of metadata of nuspec file

落花浮王杯 提交于 2019-12-19 07:53:20
问题 I know Since the release of msbuild 15 (vs 2017) that NuGet is now fully integrated into MSBuild. I have a nuspec file with defining variables of package properties like: <metadata> <id>$id$</id> <version>$version$</version> <authors>$authors$</authors> ... </metadata> The nuspec file is located in the same folder of the project. When using nuget tool to create the package , it works fine. nuget pack When using msbuild v15, it raise an exception. run the command: msbuild -version Microsoft (R

Simplest way to build dotnet SDK project requiring net461 on MacOS

别说谁变了你拦得住时间么 提交于 2019-12-11 01:36:28
问题 I have a dotnet SDK .sln (and a build.proj ) with <TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks> . It builds on Windows using Visual Studio and dotnet build , but I'd also like it to build as many other places as possible. What do I need to put in my README.md and/or what can I put in the project files to make it build on Rider and/or on from bash on a Mac? 回答1: (Currently) The simplest way to build for a .NET Framework TFM when running on either macOS or Linux using the .NET Core