Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Need to re-default output properties after writing $(OutputPath). #2091

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Jul 6, 2018

When using SDK-style projects, Microsoft.Common.targets are getting imported before buildtools' targets. Thus when we overwrite $(OutputPath), we need to also reset the other output properties.

Fixes the issue described here dotnet/corefx#29831 (comment)

When using SDK-style projects, Microsoft.Common.targets are getting imported before buildtools' targets. Thus when we overwrite $(OutputPath), we need to also reset the other output properties.
@@ -24,6 +24,18 @@
<NuGetDeploySourceItem>Reference</NuGetDeploySourceItem>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReferenceAssembly)'=='true' AND '$(UsingMicrosoftNETSdk)'=='true'">
<!-- When not using Sdk-style projects, Microsoft.Common.CurrentVersion.targets,

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@eerhardt eerhardt closed this Jul 9, 2018
@eerhardt eerhardt reopened this Jul 9, 2018
Copy link
Member

@wtgodbe wtgodbe left a comment

Choose a reason for hiding this comment

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

LGTM

@mmitche
Copy link
Member

mmitche commented Jul 9, 2018

@dotnet-bot test this please

@mmitche mmitche closed this Jul 9, 2018
@mmitche mmitche reopened this Jul 9, 2018
@eerhardt eerhardt merged commit a829298 into dotnet:master Jul 10, 2018
eerhardt added a commit to eerhardt/corefx that referenced this pull request Jul 10, 2018
This workaround was necessary until dotnet/buildtools#2091 was merged. Now it can be removed.
eerhardt added a commit to dotnet/corefx that referenced this pull request Jul 10, 2018
This workaround was necessary until dotnet/buildtools#2091 was merged. Now it can be removed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants