dotnet/msbuild

Use current runtime + architecture for GenerateResource on .NET Core

Open

#1,293 建立於 2016年11月1日

在 GitHub 查看
 (2 留言) (1 反應) (0 負責人)C# (1,364 fork)batch import
.NET Corebughelp wantedtriaged

倉庫指標

Star
 (5,062 star)
PR 合併指標
 (平均合併 11天 7小時) (30 天內合併 125 個 PR)

描述

See https://github.com/dotnet/sdk/issues/346#issuecomment-257654120.

On .NET Core, MSBuild doesn't support task hosts of different architectures/runtime versions. But the CoreResGen target does some gymnastics to figure out the right architecture/runtime version to use for the GenerateResource task.

On .NET Core we should just use CurrentArchitecture/CurrentRuntime.

Or as @nguerrera suggested, maybe just add the DoesTaskHostExist check for Architecture as well as Runtime.

貢獻者指南