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

Ensure that compiler path is set during Design Time build #5700

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

KevinRansom
Copy link
Member

In order to deploy the compiler with the VS tools VSIX, the IDE sets a build global variable: FSharpCompilerPath, the build targets then use this to target the correct compiler.

The design time build wasn't picking up this value, and therefore using the compiler shipped with VS for Intellisense etc. The end result was that MSBuild was using the old version of the FSharp.Build build task.

Because MsBuild was then reused for the re-build when doing a rebuild with the correct compiler tools path, msbuild silently used the already loaded FSharp.Build task, and failed to correctly bind to the EmbeddedFiles property.

Fortunately the Fix was trivial, and we now know a small amount more about the BuildTargets.

Kevin

@KevinRansom KevinRansom requested a review from brettfo September 25, 2018 21:48
@brettfo
Copy link
Member

brettfo commented Sep 25, 2018

The internal source of ExportBuildGlobalPropertiesProvider shows that the boolean you specify switches between string values of "Microsoft.VisualStudio.ProjectSystem.DesignTimeBuild" and "Microsoft.VisualStudio.ProjectSystem.FullBuild" and the comments seem to indicate that the two values are mutually exclusive. Because of that can you do one extra check to ensure that the regular IDE build has that property set, too? I don't want to trade one bug for another.

@cartermp
Copy link
Contributor

@KevinRansom This addresses #5640 yes?

@KevinRansom
Copy link
Member Author

@brettfo sure can, I'm still doing a bit more testing anyway.@cartermp yeppers.

@KevinRansom
Copy link
Member Author

@brettfo, @cartermp this change relies on the project system bug being fixed. I believe that fix is targeted at release 15.8.6.

Because this change is in our code, we do not need to propagate a fix to the release branch until Dev16. It is sufficient that nightlies have this code.

Kevin

@cartermp
Copy link
Contributor

Sounds good. I set the milestone for #5640 to be 16.0.

@KevinRansom
Copy link
Member Author

@brettfo good eyes, mate.

@KevinRansom KevinRansom merged commit 18958ca into dotnet:master Sep 27, 2018
@KevinRansom KevinRansom deleted the Fix5640 branch October 6, 2018 02:32
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* Ensure that compiler path is set during Design Time build

* both build types
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.

3 participants