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

Don't import reference assemblies for nestandard builds in NuGet.Configuration #4582

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Apr 18, 2022

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/1569

Regression? Last working version:

Description

Warnings are raised:

(ResolveAssemblyReferences target) ->
C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2301,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Security". Check
to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Code\NuGet.Client\src\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj]
C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2301,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Xml". Check to m
ake sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Code\NuGet.Client\src\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj]
C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2301,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Xml.Linq". Check
to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Code\NuGet.Client\src\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj]
C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2301,5): warning MSB3243: No way to resolve conflict between "System.Xml, Version=4.0.0.0, Culture=neutral, Public
KeyToken=b77a5c561934e089" and "System.Xml". Choosing "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily. [C:\Code\NuGet.Client\src\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj]
C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2301,5): warning MSB3243: No way to resolve conflict between "System.Xml.Linq, Version=4.0.0.0, Culture=neutral, P
ublicKeyToken=b77a5c561934e089" and "System.Xml.Linq". Choosing "System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily. [C:\Code\NuGet.Client\src\NuGet.Core\NuGet.Configuration\NuGet.Configurati
on.csproj]

5 Warning(s)

This was mistakenly added in #4404 (comment)

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@nkolev92 nkolev92 marked this pull request as ready for review April 18, 2022 23:14
@nkolev92 nkolev92 requested a review from a team as a code owner April 18, 2022 23:14
@nkolev92 nkolev92 merged commit e65d9de into dev Apr 19, 2022
@nkolev92 nkolev92 deleted the dev-nkolev92-fixNuGetConfigurationWarnings branch April 19, 2022 17:57
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.

2 participants