-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Upgrade BCL assembly to 8.0.0 #71444
Changes from 6 commits
848076b
fb5a1a7
20ce649
24b2014
3df1aa6
b18ab1b
c555956
038ab52
257fb25
0be6aa1
6ddff8a
f4cd26e
5159608
2f402a7
4ce2da8
b3b449a
c024453
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
using Roslyn.Test.Utilities.Desktop; | ||
using Xunit; | ||
using Basic.Reference.Assemblies; | ||
using System.Numerics; | ||
|
||
namespace Microsoft.CodeAnalysis.UnitTests | ||
{ | ||
|
@@ -43,6 +44,7 @@ public void TestAnalyzerLoading_AppDomain() | |
var dir = Temp.CreateDirectory(); | ||
dir.CopyFile(typeof(AppDomainUtils).Assembly.Location); | ||
dir.CopyFile(typeof(RemoteAnalyzerFileReferenceTest).Assembly.Location); | ||
dir.CopyFile(typeof(Vector).Assembly.Location); | ||
var analyzerFile = DesktopTestHelpers.CreateCSharpAnalyzerAssemblyWithTestAnalyzer(dir, "MyAnalyzer"); | ||
var loadDomain = AppDomainUtils.Create("AnalyzerTestDomain", basePath: dir.Path); | ||
try | ||
|
@@ -85,6 +87,7 @@ public class TestAnalyzer : DiagnosticAnalyzer | |
var immutable = dir.CopyFile(typeof(ImmutableArray).Assembly.Location); | ||
var analyzer = dir.CopyFile(typeof(DiagnosticAnalyzer).Assembly.Location); | ||
dir.CopyFile(typeof(RemoteAnalyzerFileReferenceTest).Assembly.Location); | ||
dir.CopyFile(typeof(Vector).Assembly.Location); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above comment |
||
|
||
var analyzerCompilation = CSharp.CSharpCompilation.Create( | ||
"MyAnalyzer", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
<ItemGroup Label="Package References"> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(MicrosoftExtensionsDependencyInjectionVersion)" /> | ||
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="$(MicrosoftBclAsyncInterfacesVersion)" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You shouldn't reference this package on .NETCoreApp. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want to add this but I get this
From There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the request here is to add it to a conditional item group: <ItemGroup Condition="'$(TargetFramework)' == 'net472'">
<PackageReference ... />
</ItemGroup> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like the following packages bring M.Bcl.AsyncInterfaces in on .NETCoreApp:
Those packages should be updated to not reference M.Bcl.AsyncInterfaces. I submitted microsoft/vs-threading#1269, dotnet/Nerdbank.Streams#723 and microsoft/vs-streamjsonrpc#987 to fix that. Meanwhile I understand that you want to upgrade the transitive package dependency. Did you consider using NuGet Central Package Management with the transitive pinning feature? That would allow you to do that automatically without needing to add an extra PackageReference in this project. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am thinking about this. The main purpose of this PR is Roslyn also ships a few dlls, which needs to match the dlls version in msbuild. (e.g SystemCollectionsImmutableVersion and SystemReflectionMetadataVersion) |
||
</ItemGroup> | ||
|
||
<ItemGroup Label="Project References"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test would fail on line 54. Exception shows it can't find System.Numerics assembly.