Skip to content

Conversation

@JoeRobich
Copy link
Member

It was reported that dotnet-format was failing to load WPF project with the MSBuildWorkspace (See dotnet/format#1337). The necessary change to fix this was to pass BuildingInsideVisualStudio to true which we were already doing for Full Framework. This change makes the behavior the same regardless of which TFM the MSBuild.Workspace library was built for.

@JoeRobich JoeRobich requested a review from a team as a code owner October 18, 2021 22:07
@ghost ghost added the Area-IDE label Oct 18, 2021
@jmarolf
Copy link
Contributor

jmarolf commented Oct 18, 2021

@JoeRobich if we want to fix this for .NET 6 we would need to merge this into 17.0 correct?

@JoeRobich
Copy link
Member Author

@JoeRobich if we want to fix this for .NET 6 we would need to merge this into 17.0 correct?

Talked offline. We don't ship MSBuild Workspace as part of the SDK and dotnet-format doesn't need this change because it can set this property on its own.

@JoeRobich
Copy link
Member Author

@jasonmalinowski please take a look.

{ PropertyNames.DesignTimeBuild, bool.TrueString },

// this will force CoreCompile task to execute even if all inputs and outputs are up to date
#if NETCOREAPP
Copy link
Member

Choose a reason for hiding this comment

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

This appears to be an almost direct revert of #40885; does this reintroduce whatever original issue that was fixing?

Copy link
Member

Choose a reason for hiding this comment

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

@sharwell can you clarify what the original change was for?

Copy link
Contributor

Choose a reason for hiding this comment

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

We were hitting dotnet/msbuild#4770, presumably because dotnet/msbuild#5045 wasn't available in one or more SDKs we were executing against.


// this will force CoreCompile task to execute even if all inputs and outputs are up to date
#if NETCOREAPP
{ PropertyNames.NonExistentFile, "__NonExistentSubDir__\\__NonExistentFile__" },
Copy link
Member

Choose a reason for hiding this comment

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

The original PR introduced this property name, can we delete it again?

@JoeRobich
Copy link
Member Author

Closing this as WPF project loading is fixed.

@JoeRobich JoeRobich closed this May 7, 2024
@JoeRobich JoeRobich deleted the dev/jorobich/always-set-buildinginsidevisualstudio branch May 7, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants