dotnet / dotnet/roslyn-tools

RepoToolset fails to load the correct compiler in WPF projects

Open
#154 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
109
Forks
85
Avg merge
2d 16h
Merged PRs (30d)
1

Description

The toolset uses a `` to reference Microsoft.Net.Compilers:

https://github.com/dotnet/roslyn-tools/blob/f093fd26f99e3e4aee739996eebb50fb3de15c0c/sdks/RepoToolset/tools/Compiler.props#L10

This feature assumes that build extensions included in the package will be used during the build. However, for the **.tmp_proj** created for WPF projects, this is not the case. The underlying bug is NuGet/Home#5894.

The workaround is to explicitly import the NuGet build files when building the WPF temporary project, as shown in dotnet/roslyn-sdk#94.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.