dotnet / samples

Sample code referenced by the .NET documentation

Home Page:https://docs.microsoft.com/samples/browse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSBuild custom tasks are framed into Debug

Linlccc opened this issue · comments

commented

I found that after I use the NuGet package of MSBuild custom task, it can work normally, but after the meeting, the Nuget package assembly (including dependencies) of this task will also be built to the Debug file, which is not what I thought, he also No one works, I want to know what can I do so that it doesn't get built into Debug

commented

I also encountered a problem. It can be used normally when using the netstandard2.0 framework, but an error will be reported after modifying the framework to other versions

commented

I found that after I use the NuGet package of MSBuild custom task, it can work normally, but after the meeting, the Nuget package assembly (including dependencies) of this task will also be built to the Debug file, which is not what I thought, he also No one works, I want to know what can I do so that it doesn't get built into Debug

在当前 上添加一个 ExcludeAssets="runtime" 就不会将当前包生成到debug文件了