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

Found conflicts between different versions of libraries for the project under .NET Framework 4.7.2 #75497

Open
NikiPn opened this issue Oct 14, 2024 · 0 comments
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@NikiPn
Copy link

NikiPn commented Oct 14, 2024

Version Used: Microsoft.CodeAnalysis.Workspaces.MSBuild 4.12.0-1.24375.8

Steps to Reproduce:

  1. Create a console application (the Console App template) whose project file has the following contents:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net472</TargetFramework>
    <Nullable>disable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild">
      <Version>4.12.0-1.24375.8</Version>
    </PackageReference>
  </ItemGroup>

</Project>
  1. Build a project

Expected Behavior:

The project is built with no warnings.

Actual Behavior:

Get the following warnings:

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Memory" that could not be resolved.

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" and "System.Memory, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51".

....

Note

The warnings emerge when updating Microsoft.CodeAnalysis.Workspaces.MSBuild version 4.12.0-1.24375.7 to 4.12.0-1.24375.8. The warnings remain in later versions (for example, 4.13.0-1.24511.1).

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants