-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Changing the BaseIntermediateOutputPath doesn't work with assembly references from .targets files #980
Comments
TODO: * project.assets.json on obj dir => dotnet/sdk#980 * R# sdk: error with installation detection => https://youtrack.jetbrains.com/issue/RSRP-463584
See #803 and dotnet/msbuild#1603. The fix is to use <Project>
<PropertyGroup>
<BaseIntermediateOutputPath>obj\XXX\</BaseIntermediateOutputPath>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<!-- Body of project -->
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project> Alternatively, you can also set the |
@dsplaisted: Thanks. This workaround fixed my problem. |
Importing the SDK after specifying |
The workaround from #760 (setting the
BaseIntermediateOutputPath
property) does not work out for me in a project, where I reference a NuGet package with an MSBuild .targets with adds an assembly references. The concerned package (root) isJetBrains.ReSharper.SDK
.Repro sample:
Note that the
BaseIntermediateOutputPath
workaround worked fine with non .NET Core projects (see ImplicitNullability.Plugin.R20163.csproj).The text was updated successfully, but these errors were encountered: