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

ResolvePackageFileConflicts is emitting confusing conflict messages when building .NET 3.5 projects. #1897

Open
MichaelSimons opened this issue Jan 25, 2018 · 11 comments
Milestone

Comments

@MichaelSimons
Copy link
Member

MichaelSimons commented Jan 25, 2018

Steps to Reproduce

  1. Setup environment with msbuild 15.5 or newer
  2. Create a new .NET 3.5 project
  3. Build - msbuild /t:build

Actual Results
The build output indicates there are a bunch of package conflicts

...
Using "ResolvePackageFileConflicts" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\\tools\net46\Microsoft.NET.Build.Extensions.Tasks.dll".
Task "ResolvePackageFileConflicts"
  Encountered conflict between 'Platform:System.DirectoryServices.AccountManagement.dll' and 'Platform:System.DirectoryServices.AccountManagement.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Net.dll' and 'Platform:System.Net.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.ComponentModel.DataAnnotations.dll' and 'Platform:System.ComponentModel.DataAnnotations.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Abstractions.dll' and 'Platform:System.Web.Abstractions.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Routing.dll' and 'Platform:System.Web.Routing.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.DynamicData.dll' and 'Platform:System.Web.DynamicData.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.DynamicData.Design.dll' and 'Platform:System.Web.DynamicData.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Extensions.Design.dll' and 'Platform:System.Web.Extensions.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Extensions.dll' and 'Platform:System.Web.Extensions.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Core.dll' and 'Platform:System.Core.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Conversion.v3.5.dll' and 'Platform:Microsoft.Build.Conversion.v3.5.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Utilities.v3.5.dll' and 'Platform:Microsoft.Build.Utilities.v3.5.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Tasks.v3.5.dll' and 'Platform:Microsoft.Build.Tasks.v3.5.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Engine.dll' and 'Platform:Microsoft.Build.Engine.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Framework.dll' and 'Platform:Microsoft.Build.Framework.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.DataSetExtensions.dll' and 'Platform:System.Data.DataSetExtensions.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.AddIn.dll' and 'Platform:System.AddIn.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.AddIn.Contract.dll' and 'Platform:System.AddIn.Contract.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Linq.dll' and 'Platform:System.Data.Linq.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Xml.Linq.dll' and 'Platform:System.Xml.Linq.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Management.Instrumentation.dll' and 'Platform:System.Management.Instrumentation.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.ServiceModel.Web.dll' and 'Platform:System.ServiceModel.Web.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.WorkflowServices.dll' and 'Platform:System.WorkflowServices.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.VisualC.STLCLR.dll' and 'Platform:Microsoft.VisualC.STLCLR.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.VisualC.STLCLR.dll' and 'Platform:Microsoft.VisualC.STLCLR.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Windows.Presentation.dll' and 'Platform:System.Windows.Presentation.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Sentinel.v3.5Client.dll' and 'Platform:Sentinel.v3.5Client.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Entity.dll' and 'Platform:System.Data.Entity.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Entity.Design.dll' and 'Platform:System.Data.Entity.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Entity.dll' and 'Platform:System.Web.Entity.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Entity.Design.dll' and 'Platform:System.Web.Entity.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Services.dll' and 'Platform:System.Data.Services.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Services.Client.dll' and 'Platform:System.Data.Services.Client.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Services.Design.dll' and 'Platform:System.Data.Services.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Engine.dll' and 'Platform:Microsoft.Build.Engine.dll'.  Choosing 'Platform:Microsoft.Build.Engine.dll' because AssemblyVersion '3.5.0.0' is greater than '2.0.0.0'.
  Encountered conflict between 'Platform:Microsoft.Build.Framework.dll' and 'Platform:Microsoft.Build.Framework.dll'.  Choosing 'Platform:Microsoft.Build.Framework.dll' because AssemblyVersion '3.5.0.0' is greater than '2.0.0.0'.
  Encountered conflict between 'Platform:MSBuild.dll' and 'Platform:MSBuild.dll'.  Choosing 'Platform:MSBuild.dll' because AssemblyVersion '3.5.0.0' is greater than '2.0.0.0'.
  Encountered conflict between 'Platform:System.DirectoryServices.AccountManagement.dll' and 'Platform:System.DirectoryServices.AccountManagement.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Net.dll' and 'Platform:System.Net.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.ComponentModel.DataAnnotations.dll' and 'Platform:System.ComponentModel.DataAnnotations.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Abstractions.dll' and 'Platform:System.Web.Abstractions.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Routing.dll' and 'Platform:System.Web.Routing.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.DynamicData.dll' and 'Platform:System.Web.DynamicData.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.DynamicData.Design.dll' and 'Platform:System.Web.DynamicData.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Extensions.Design.dll' and 'Platform:System.Web.Extensions.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Extensions.dll' and 'Platform:System.Web.Extensions.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Core.dll' and 'Platform:System.Core.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Conversion.v3.5.dll' and 'Platform:Microsoft.Build.Conversion.v3.5.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Utilities.v3.5.dll' and 'Platform:Microsoft.Build.Utilities.v3.5.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Tasks.v3.5.dll' and 'Platform:Microsoft.Build.Tasks.v3.5.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Engine.dll' and 'Platform:Microsoft.Build.Engine.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Framework.dll' and 'Platform:Microsoft.Build.Framework.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.DataSetExtensions.dll' and 'Platform:System.Data.DataSetExtensions.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.AddIn.dll' and 'Platform:System.AddIn.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.AddIn.Contract.dll' and 'Platform:System.AddIn.Contract.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Linq.dll' and 'Platform:System.Data.Linq.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Xml.Linq.dll' and 'Platform:System.Xml.Linq.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Management.Instrumentation.dll' and 'Platform:System.Management.Instrumentation.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.ServiceModel.Web.dll' and 'Platform:System.ServiceModel.Web.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.WorkflowServices.dll' and 'Platform:System.WorkflowServices.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.VisualC.STLCLR.dll' and 'Platform:Microsoft.VisualC.STLCLR.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.VisualC.STLCLR.dll' and 'Platform:Microsoft.VisualC.STLCLR.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Windows.Presentation.dll' and 'Platform:System.Windows.Presentation.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Sentinel.v3.5Client.dll' and 'Platform:Sentinel.v3.5Client.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Entity.dll' and 'Platform:System.Data.Entity.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Entity.Design.dll' and 'Platform:System.Data.Entity.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Entity.dll' and 'Platform:System.Web.Entity.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Web.Entity.Design.dll' and 'Platform:System.Web.Entity.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Services.dll' and 'Platform:System.Data.Services.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Services.Client.dll' and 'Platform:System.Data.Services.Client.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:System.Data.Services.Design.dll' and 'Platform:System.Data.Services.Design.dll'.  Could not determine winner due to equal file and assembly versions.
  Encountered conflict between 'Platform:Microsoft.Build.Engine.dll' and 'Platform:Microsoft.Build.Engine.dll'.  Choosing 'Platform:Microsoft.Build.Engine.dll' because AssemblyVersion '3.5.0.0' is greater than '2.0.0.0'.
  Encountered conflict between 'Platform:Microsoft.Build.Framework.dll' and 'Platform:Microsoft.Build.Framework.dll'.  Choosing 'Platform:Microsoft.Build.Framework.dll' because AssemblyVersion '3.5.0.0' is greater than '2.0.0.0'.
  Encountered conflict between 'Platform:MSBuild.dll' and 'Platform:MSBuild.dll'.  Choosing 'Platform:MSBuild.dll' because AssemblyVersion '3.5.0.0' is greater than '2.0.0.0'.
Done executing task "ResolvePackageFileConflicts".
...

Expected Results

  1. The conflict message itself it confusing. The message doesn't indicate what the source of the two "platform" conflicts are. I wouldn't expect the platform to have conflicts within itself.
  2. The conflict messages are the majority of the output. I would expect that the build output of a new empty project with the default verbosity would be pretty simple and understandable.

Notes of Interest:

  1. This appears to be a behavior change introduced in 15.5. The 15.4 output does not include these conflicts.
  2. The diagnostic output indicates the following TargetFrameworkDirectories are detected
  Task Parameter:
      TargetFrameworkDirectories=
          C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\
          C:\Windows\Microsoft.NET\Framework\v3.5\
          "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\"
          C:\Windows\Microsoft.NET\Framework\v3.0\
          C:\Windows\Microsoft.NET\Framework\v2.0.50727\ (TaskId:8)
  1. The C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\RedistList\FrameworkList.xml includes multiple entries for most assemblies.
...
  <File AssemblyName="System.Core" Version="3.5.0.0" PublicKeyToken="b77a5c561934e089" Culture="neutral" ProcessorArchitecture="MSIL" InGAC="false" />
  <File AssemblyName="System.Core" Version="3.5.0.0" PublicKeyToken="b77a5c561934e089" Culture="neutral" ProcessorArchitecture="MSIL" InGAC="true" />
...
@eerhardt
Copy link
Member

FYI - @dsplaisted @ericstj @joperezr

@livarcocc
Copy link
Contributor

@joperezr I believe the only differences between 15.4 and 15.5 are the changes we took from you.

@livarcocc livarcocc added this to the Discussion milestone Jan 25, 2018
@joperezr
Copy link
Member

I don't think this has anything to do with my changes, this is a problem with the ConflictResolution logic which both @dsplaisted and @ericstj are more familiar with. If in fact there where no other changes than mine on 15.5, then it is very likely that this problem is not unique to that VS version, and will most likely repro on older versions as well, we probably didn't catch it before because we usually don't target 3.5

@eerhardt
Copy link
Member

From my cursory look at the code, this problem appears to have been in there from the beginning. The v3.5 FrameworkList.xml file has 2 entries for assemblies, one for "inGac=true" and one for "inGac=false". There doesn't appear to be any code to handle this scenario from what I can tell.

@catweazle9
Copy link

Any update on this issue and whether it is likely to be fixed?

We have to target .Net 3.5 in many of our projects and we're seeing these errors repeatedly (79,000 times in a single build!), which bloats our build log by about a third.

@dsplaisted dsplaisted self-assigned this May 1, 2018
@dsplaisted dsplaisted modified the milestones: Discussion, 2.1.4xx May 1, 2018
@dsplaisted
Copy link
Member

@catweazle9 @MichaelSimons As a workaround, can you try setting the DisableHandlePackageFileConflicts to true for projects targeting .NET Framework 3.5?

@wleary
Copy link

wleary commented May 12, 2018

I'm getting this issue as well, building a .NET 4.0 ASP.NET application. It does reference assemblies that are .NET 3.5.

@livarcocc livarcocc modified the milestones: 2.1.4xx, 2.2.1xx Jun 28, 2018
@tannergooding tannergooding removed their assignment Aug 13, 2018
ChrisMaddock added a commit to nunit/nunit3-vs-adapter that referenced this issue Nov 15, 2018
ChrisMaddock added a commit to nunit/nunit3-vs-adapter that referenced this issue Nov 21, 2018
OsirisTerje pushed a commit to nunit/nunit3-vs-adapter that referenced this issue Nov 24, 2018
* Update engine to version 3.9.0

* Suppress errors from dotnet/sdk#1897

* Comment changes

* VSTest 15.9 is requiring <IsTestProject>

* VSTest 15.9 doesn’t support /Framework:Framework35

* Mismatching engine version is a problem on .NET Core which doesn’t have app domains
@rschindhelm-haba
Copy link

We've encountered this on our TFS 2018 CI builds when building a .NET Framework application which uses .NET Standard libraries, using the Visual Studio Build task (MSBuild).

Excerpt:

2019-03-06T07:11:21.1661481Z _HandlePackageFileConflicts:
2019-03-06T07:11:21.1661481Z C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Reference:System.Runtime.InteropServices.RuntimeInformation'.  NETSDK1033: Choosing 'Reference:System.Runtime.InteropServices.RuntimeInformation' because AssemblyVersion '4.0.2.0' is greater than '4.0.1.0'. [c:\agent\_work\8\s\src\SampleProject\src\DotNetFullFrameworkApplication.csproj]
2019-03-06T07:11:21.1661481Z C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.IO.Compression.ZipFile, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL' and 'Reference:System.IO.Compression.ZipFile'.  NETSDK1033: Choosing 'Reference:System.IO.Compression.ZipFile' because AssemblyVersion '4.0.3.0' is greater than '4.0.2.0'. [c:\agent\_work\8\s\src\SampleProject\src\DotNetFullFrameworkApplication.csproj]
2019-03-06T07:11:21.1974031Z C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' and 'Platform:Microsoft.Build.Framework.dll'.  NETSDK1033: Choosing 'Reference:Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' because AssemblyVersion '15.1.0.0' is greater than '4.0.0.0'. [c:\agent\_work\8\s\src\SampleProject\src\DotNetFullFrameworkApplication.csproj]
2019-03-06T07:11:21.1974031Z C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.IO.Compression' and 'Platform:System.IO.Compression.dll'.  NETSDK1033: Choosing 'Reference:System.IO.Compression' because AssemblyVersion '4.2.0.0' is greater than '4.0.0.0'. [c:\agent\_work\8\s\src\SampleProject\src\DotNetFullFrameworkApplication.csproj]
2019-03-06T07:11:21.1974031Z C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Net.Http' and 'Platform:System.Net.Http.dll'.  NETSDK1033: Choosing 'Reference:System.Net.Http' because AssemblyVersion '4.2.0.0' is greater than '4.0.0.0'. [c:\agent\_work\8\s\src\SampleProject\src\DotNetFullFrameworkApplication.csproj]
2019-03-06T07:11:21.1974031Z C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:System.Collections' and 'Platform:System.Collections.dll'.  NETSDK1033: Choosing 'Reference:System.Collections' because AssemblyVersion '4.0.11.0' is greater than '4.0.10.0'. [c:\agent\_work\8\s\src\SampleProject\src\DotNetFullFrameworkApplication.csproj]

@6pac
Copy link

6pac commented Mar 13, 2019

Also getting this error building in DotNet Standard targeting 4.6.2.
Despite searching, I have not been able to find any good quality resources about analysing and troubleshooting packages and dependencies. Does the team know of any good resources?

For example, I had an issue with Newtonsoft.Json in a 5-project solution, because one of my projects targeted 12.0.0, and while none of the other projects had this Nuget package installed, Newtonsoft.Json 11.0.0 was clearly a dependency of some package present in the other projects, and I ended up with DLL binding problems running the application on the production server (although not in dev).
At the moment, the solution is to randomly try downgrading likely candidates until the problem goes away.

If we're not going to get clear error messages about how to fix these things, there must be some systematic and clear way to work out how the conflicts are arising.

@JoachimRaue-EH
Copy link

Any news on this? The bug is open for almost two years... I am also struggling with megabytes worth of useless log entries.

@StenPetrov
Copy link

StenPetrov commented Nov 25, 2020

I'm getting this in a project that's targeting 4.7.2 and has netstandard reference

Encountered conflict between 'Reference:System.Runtime' and 'Platform:System.Runtime.dll'. Choosing 'Platform:System.Runtime.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. (TaskId:107)
Encountered conflict between 'Reference:System.Net.Http' and 'Platform:System.Net.Http.dll'. Could not determine a winner because 'Platform:System.Net.Http.dll' has no file version. (TaskId:107)

For some reason this leads to copying reference assemblies (no code in them, metadata only) to the output, and when the exe is started it fails with BadImageException, saying reference assemblies can't be loaded at runtime

GangWang01 pushed a commit to GangWang01/sdk that referenced this issue Jun 7, 2022
* Join macro

* Make default format for the GUID macro overridable

Fixes dotnet#1737

* Add links to the different template content repos in the readme

* Convert repo list to bullets

* Adding netstandard2.1 to the list of TFMs for 3.0

* Releases the original source location mount point

* Change Build pool for internal builds (dotnet#1823)

* Removing the SourceLink packages since it is provided by Arcade

* Lowercase the content include path in the template pack csproj files

* Add gitignore template

* Update azure-pipelines.yml

* Update web.config item template

This updates the web.config item template to align with what `dotnet publish` produces when publishing

* Update template_feed/Microsoft.DotNet.Common.ItemTemplates/content/WebConfig/web.config

Co-Authored-By: Justin Kotalik <jukotali@microsoft.com>

* Merge master into stabilize (dotnet#1905)

* Update dependencies from https://github.com/dotnet/arcade build 20190418.7 (dotnet#1867)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19218.7

* Update dependencies from https://github.com/dotnet/arcade build 20190422.2 (dotnet#1870)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19222.2

* Update dependencies from https://github.com/dotnet/arcade build 20190423.2 (dotnet#1871)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19223.2

* Update dependencies from https://github.com/dotnet/arcade build 20190424.9 (dotnet#1873)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19224.9

* Update dependencies from https://github.com/dotnet/arcade build 20190425.5 (dotnet#1874)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19225.5

* Update dependencies from https://github.com/dotnet/arcade build 20190426.3 (dotnet#1875)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19226.3

* Update dependencies from https://github.com/dotnet/arcade build 20190429.8 (dotnet#1876)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19229.8

* Update dependencies from https://github.com/dotnet/arcade build 20190430.6 (dotnet#1877)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19230.6

* [master] Update dependencies from dotnet/arcade (dotnet#1879)

* Update dependencies from https://github.com/dotnet/arcade build 20190501.6

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19251.6

* Update dependencies from https://github.com/dotnet/arcade build 20190502.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19252.2

* Update dependencies from https://github.com/dotnet/arcade build 20190503.8 (dotnet#1881)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19253.8

* Update dependencies from https://github.com/dotnet/arcade build 20190504.1 (dotnet#1882)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19254.1

* Update dependencies from https://github.com/dotnet/arcade build 20190505.2 (dotnet#1883)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19255.2

* Update dependencies from https://github.com/dotnet/arcade build 20190506.12 (dotnet#1886)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19256.12

* [master] Update dependencies from dotnet/arcade (dotnet#1888)

* Update dependencies from https://github.com/dotnet/arcade build 20190507.7

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19257.7

* Update dependencies from https://github.com/dotnet/arcade build 20190508.5

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19258.5

* Update dependencies from https://github.com/dotnet/arcade build 20190509.9 (dotnet#1889)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19259.9

* Update dependencies from https://github.com/dotnet/arcade build 20190510.2 (dotnet#1890)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19260.2

* Update dependencies from https://github.com/dotnet/arcade build 20190511.1 (dotnet#1891)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19261.1

* Update dependencies from https://github.com/dotnet/arcade build 20190512.1 (dotnet#1892)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19262.1

* Update dependencies from https://github.com/dotnet/arcade build 20190513.3 (dotnet#1893)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19263.3

* [master] Update dependencies from dotnet/arcade (dotnet#1895)

* Update dependencies from https://github.com/dotnet/arcade build 20190514.13

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19264.13

* Update dependencies from https://github.com/dotnet/arcade build 20190516.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19266.2

* Update dependencies from https://github.com/dotnet/arcade build 20190516.4

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19266.4

* Update dependencies from https://github.com/dotnet/arcade build 20190517.7

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19267.7

* Update dependencies from https://github.com/dotnet/arcade build 20190518.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19268.2

* Update dependencies from https://github.com/dotnet/arcade build 20190520.1

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.1

* Update dependencies from https://github.com/dotnet/arcade build 20190520.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.2

* Updating the glob.json to include the 2.1.x version

* Update dependencies from https://github.com/dotnet/arcade build 20190521.7 (dotnet#1897)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19271.7

* Update dependencies from https://github.com/dotnet/arcade build 20190522.13 (dotnet#1898)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19272.13

* Update dependencies from https://github.com/dotnet/arcade build 20190523.11 (dotnet#1899)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19273.11

* Update dependencies from https://github.com/dotnet/arcade build 20190524.6 (dotnet#1901)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19274.6

* Update dependencies from https://github.com/dotnet/arcade build 20190528.1 (dotnet#1903)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19278.1

* Merging stabilize into master (dotnet#1904)

* Join macro

* Make default format for the GUID macro overridable

Fixes dotnet#1737

* Add links to the different template content repos in the readme

* Convert repo list to bullets

* Adding netstandard2.1 to the list of TFMs for 3.0

* Releases the original source location mount point

* Change Build pool for internal builds (dotnet#1823)

* Removing the SourceLink packages since it is provided by Arcade

* Lowercase the content include path in the template pack csproj files

* Add gitignore template

* Update azure-pipelines.yml

* Update web.config item template

This updates the web.config item template to align with what `dotnet publish` produces when publishing

* Update template_feed/Microsoft.DotNet.Common.ItemTemplates/content/WebConfig/web.config

Co-Authored-By: Justin Kotalik <jukotali@microsoft.com>

* Update --langVersion option's description

* Removing Microsoft.Extensions.CommandLineUtils references from the repo
GangWang01 pushed a commit to GangWang01/sdk that referenced this issue Jul 11, 2022
* Join macro

* Make default format for the GUID macro overridable

Fixes dotnet#1737

* Add links to the different template content repos in the readme

* Convert repo list to bullets

* Adding netstandard2.1 to the list of TFMs for 3.0

* Releases the original source location mount point

* Change Build pool for internal builds (dotnet#1823)

* Removing the SourceLink packages since it is provided by Arcade

* Lowercase the content include path in the template pack csproj files

* Add gitignore template

* Update azure-pipelines.yml

* Update web.config item template

This updates the web.config item template to align with what `dotnet publish` produces when publishing

* Update template_feed/Microsoft.DotNet.Common.ItemTemplates/content/WebConfig/web.config

Co-Authored-By: Justin Kotalik <jukotali@microsoft.com>

* Merge master into stabilize (dotnet#1905)

* Update dependencies from https://github.com/dotnet/arcade build 20190418.7 (dotnet#1867)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19218.7

* Update dependencies from https://github.com/dotnet/arcade build 20190422.2 (dotnet#1870)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19222.2

* Update dependencies from https://github.com/dotnet/arcade build 20190423.2 (dotnet#1871)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19223.2

* Update dependencies from https://github.com/dotnet/arcade build 20190424.9 (dotnet#1873)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19224.9

* Update dependencies from https://github.com/dotnet/arcade build 20190425.5 (dotnet#1874)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19225.5

* Update dependencies from https://github.com/dotnet/arcade build 20190426.3 (dotnet#1875)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19226.3

* Update dependencies from https://github.com/dotnet/arcade build 20190429.8 (dotnet#1876)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19229.8

* Update dependencies from https://github.com/dotnet/arcade build 20190430.6 (dotnet#1877)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19230.6

* [master] Update dependencies from dotnet/arcade (dotnet#1879)

* Update dependencies from https://github.com/dotnet/arcade build 20190501.6

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19251.6

* Update dependencies from https://github.com/dotnet/arcade build 20190502.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19252.2

* Update dependencies from https://github.com/dotnet/arcade build 20190503.8 (dotnet#1881)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19253.8

* Update dependencies from https://github.com/dotnet/arcade build 20190504.1 (dotnet#1882)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19254.1

* Update dependencies from https://github.com/dotnet/arcade build 20190505.2 (dotnet#1883)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19255.2

* Update dependencies from https://github.com/dotnet/arcade build 20190506.12 (dotnet#1886)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19256.12

* [master] Update dependencies from dotnet/arcade (dotnet#1888)

* Update dependencies from https://github.com/dotnet/arcade build 20190507.7

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19257.7

* Update dependencies from https://github.com/dotnet/arcade build 20190508.5

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19258.5

* Update dependencies from https://github.com/dotnet/arcade build 20190509.9 (dotnet#1889)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19259.9

* Update dependencies from https://github.com/dotnet/arcade build 20190510.2 (dotnet#1890)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19260.2

* Update dependencies from https://github.com/dotnet/arcade build 20190511.1 (dotnet#1891)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19261.1

* Update dependencies from https://github.com/dotnet/arcade build 20190512.1 (dotnet#1892)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19262.1

* Update dependencies from https://github.com/dotnet/arcade build 20190513.3 (dotnet#1893)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19263.3

* [master] Update dependencies from dotnet/arcade (dotnet#1895)

* Update dependencies from https://github.com/dotnet/arcade build 20190514.13

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19264.13

* Update dependencies from https://github.com/dotnet/arcade build 20190516.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19266.2

* Update dependencies from https://github.com/dotnet/arcade build 20190516.4

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19266.4

* Update dependencies from https://github.com/dotnet/arcade build 20190517.7

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19267.7

* Update dependencies from https://github.com/dotnet/arcade build 20190518.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19268.2

* Update dependencies from https://github.com/dotnet/arcade build 20190520.1

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.1

* Update dependencies from https://github.com/dotnet/arcade build 20190520.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19270.2

* Updating the glob.json to include the 2.1.x version

* Update dependencies from https://github.com/dotnet/arcade build 20190521.7 (dotnet#1897)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19271.7

* Update dependencies from https://github.com/dotnet/arcade build 20190522.13 (dotnet#1898)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19272.13

* Update dependencies from https://github.com/dotnet/arcade build 20190523.11 (dotnet#1899)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19273.11

* Update dependencies from https://github.com/dotnet/arcade build 20190524.6 (dotnet#1901)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19274.6

* Update dependencies from https://github.com/dotnet/arcade build 20190528.1 (dotnet#1903)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19278.1

* Merging stabilize into master (dotnet#1904)

* Join macro

* Make default format for the GUID macro overridable

Fixes dotnet#1737

* Add links to the different template content repos in the readme

* Convert repo list to bullets

* Adding netstandard2.1 to the list of TFMs for 3.0

* Releases the original source location mount point

* Change Build pool for internal builds (dotnet#1823)

* Removing the SourceLink packages since it is provided by Arcade

* Lowercase the content include path in the template pack csproj files

* Add gitignore template

* Update azure-pipelines.yml

* Update web.config item template

This updates the web.config item template to align with what `dotnet publish` produces when publishing

* Update template_feed/Microsoft.DotNet.Common.ItemTemplates/content/WebConfig/web.config

Co-Authored-By: Justin Kotalik <jukotali@microsoft.com>

* Update --langVersion option's description

* Removing Microsoft.Extensions.CommandLineUtils references from the repo
JL03-Yue pushed a commit that referenced this issue Mar 19, 2024
[main] Update dependencies from dotnet/arcade
- Coherency Updates:
  - Microsoft.SourceLink.GitHub: from 8.0.0-beta.23358.1 to 8.0.0-beta.23360.2 (parent: Microsoft.DotNet.Arcade.Sdk)
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

No branches or pull requests