Merge pull request #3324 from rainersigwald/patch-1

preview9 known issue: resx DependentUpon
This commit is contained in:
Lee Coward 2019-09-06 13:37:29 -07:00 committed by GitHub
commit cd40b25848
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,19 @@ The PATH issue can be confirmed by typing `echo $PATH | grep "dotnet"` and obser
To update the path for every new terminal session, the `export` entry will need to be added to your terminal resource file. This file will be different depending upon your default terminal (eg bash, zsh, ...) and configuration (.bash_profile, .bashrc, .zshrc, ...).
### Preview 9
- **Builds fail with `MSB3041` when a `.resx` file is in a subfolder [microsoft/msbuild#4695](https://github.com/microsoft/msbuild/issues/4695)**
MSBuild incorrectly constructs paths to `DependentUpon` source files related to `.resx` files that aren't at the project root. There are two possible workarounds:
1. Revert to preview8 behavior by setting this property in your project (or in a [`Directory.Build.props`](https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019#directorybuildprops-and-directorybuildtargets) for all of your projects).
```xml
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
```
2. Explicitly set `DependentUpon` metadata for resource files ([example for Entity Framework migrations](https://github.com/aspnet/EntityFramework6/issues/1225#issuecomment-528571274).
### Preview 5
- **Visual style in WinForms app not showing correctly when publishing with PublishReadyToRun=true**