Skip to content

Commit

Permalink
fix(test): Ignore CS1701 (linked to move to net9)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Jan 17, 2025
1 parent d3cc24d commit 220cee1
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,21 +223,22 @@ public async Task Initialize(CancellationToken ct)
foreach (var projectName in EnumerateProjects())
{
var projectInfo = ProjectInfo.Create(
ProjectId.CreateNewId(),
VersionStamp.Default,
name: projectName,
assemblyName: projectName,
language: LanguageNames.CSharp,
filePath: Path.Combine(_baseWorkFolder, projectName + ".csproj"),
outputFilePath: _baseWorkFolder,
metadataReferences: references,
compilationOptions: new CSharpCompilationOptions(
OutputKind.DynamicallyLinkedLibrary,
optimizationLevel: OptimizationLevel.Debug,
allowUnsafe: true,
nullableContextOptions: NullableContextOptions.Enable,
assemblyIdentityComparer: DesktopAssemblyIdentityComparer.Default),
analyzerReferences: [generatorReference]);
ProjectId.CreateNewId(),
VersionStamp.Default,
name: projectName,
assemblyName: projectName,
language: LanguageNames.CSharp,
filePath: Path.Combine(_baseWorkFolder, projectName + ".csproj"),
outputFilePath: _baseWorkFolder,
metadataReferences: references,
compilationOptions: new CSharpCompilationOptions(
OutputKind.DynamicallyLinkedLibrary,
optimizationLevel: OptimizationLevel.Debug,
allowUnsafe: true,
nullableContextOptions: NullableContextOptions.Enable,
assemblyIdentityComparer: DesktopAssemblyIdentityComparer.Default)
.WithSpecificDiagnosticOptions([new("CS1701", ReportDiagnostic.Suppress)]), // Assuming assembly reference 'System.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'Uno.UI' matches identity 'System.ObjectModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.ObjectModel', you may need to supply runtime policy, expected
analyzerReferences: [generatorReference]);

projectInfo = projectInfo
.WithCompilationOutputInfo(
Expand Down

0 comments on commit 220cee1

Please sign in to comment.