Skip to content

Conversation

@steveisok
Copy link
Member

Fixes #53811

The props were not taking into account the right paths.

Fixes dotnet#53811

The props were not taking into account the right paths.
@steveisok steveisok requested a review from marek-safar as a code owner June 7, 2021 18:03
@ghost
Copy link

ghost commented Jun 7, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Comment on lines +3 to +4
<RuntimeConfigParserTasksAssemblyPath Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tasks\net6.0\RuntimeConfigParser.dll</RuntimeConfigParserTasksAssemblyPath>
<RuntimeConfigParserTasksAssemblyPath Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tasks\net472\RuntimeConfigParser.dll</RuntimeConfigParserTasksAssemblyPath>
Copy link
Member

@akoeplinger akoeplinger Jun 8, 2021

Choose a reason for hiding this comment

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

Not sure if it's available here but this should use $(NetCoreAppToolCurrent) and $(TargetFrameworkForNETFramework) since this is how we're building the RuntimeConfigParser.csproj

Although I wonder if we should change that to hardcode a specific version since NetCoreAppToolCurrent was more designed for tasks used inside of the dotnet/runtime repo and we're shipping more tasks outside of it now:

Copy link
Member

Choose a reason for hiding this comment

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

Actually, scratch that. The Sdk.props is imported on the user's machine so we won't have $(NetCoreAppToolCurrent).

Copy link
Member

Choose a reason for hiding this comment

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

The gist of my comment still remains though: we need to make sure we either update this place here whenever we bump the NetCoreAppToolCurrent or stop using NetCoreAppToolCurrent in the tasks csproj

Copy link
Member Author

Choose a reason for hiding this comment

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

Created a follow up task #53873

@steveisok steveisok mentioned this pull request Jun 8, 2021
3 tasks
@steveisok steveisok merged commit 9af4b97 into dotnet:main Jun 8, 2021
@steveisok steveisok deleted the fix-runtimecfg-task branch June 8, 2021 14:48
@fanyang-mono
Copy link
Member

Thanks for making this change!

@ghost ghost locked as resolved and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RuntimeConfigParserTasksAssemblyPath in Microsoft.NET.Runtime.RuntimeConfigParser.Task is wrong

4 participants