Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force current runtime and arch for GenerateResources on Core msbuild #348

Merged
merged 1 commit into from
Nov 2, 2016

Conversation

nguerrera
Copy link
Contributor

Fix #346 with a workaround for dotnet/msbuild#1293

Also cleaning up the nearby usage 'hack' to just 'workaround' ;)

@srivatsn @rainersigwald @NTaylorMullen @dotnet/project-system

<NoLogo>true</NoLogo>

<!-- Temp Hack: https://github.com/Microsoft/msbuild/issues/720 -->
<!-- Workaround: https://github.com/Microsoft/msbuild/issues/720 -->
<OverrideToolHost Condition=" '$(DotnetHostPath)' != '' and '$(OverrideToolHost)' == ''">$(DotnetHostPath)</OverrideToolHost>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed. It should no longer be needed/used.

(Obviously leaving it in now doesn't hurt anything. So maybe we should remove it after RC.)

@nguerrera
Copy link
Contributor Author

Scenario

Build a project with .resx file using dotnet CLI with different architecture than target. i.e. dotnet.exe is 32-bit and application being built is 64-bit.

Bug

#348

Workarounds

Set the following in your project:

<PropertyGroup>     
  <GenerateResourceMSBuildArchitecture>CurrentArchitecture</GenerateResourceMSBuildArchitecture>
  <GenerateResourceMSBuildRuntime>CurrentRuntime</GenerateResourceMSBuildRuntime>
</PropertyGroup>

Risk

Low risk - we only change the property on Core MSBuild and it has no impact on VS builds

Performance Impact

None

Regression Analysis

Not a regression,

@nguerrera
Copy link
Contributor Author

@MattGertz for approval

@MattGertz
Copy link

Approved.

@nguerrera nguerrera merged commit 12759d1 into dotnet:master Nov 2, 2016
@nguerrera nguerrera deleted the core-resources branch November 2, 2016 21:19
sbomer pushed a commit to sbomer/sdk that referenced this pull request Sep 19, 2017
GangWang01 pushed a commit to GangWang01/sdk that referenced this pull request Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants