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

[main] Analyzers throwing exception during build in VMR #4810

Closed
Winniexu01 opened this issue Dec 24, 2024 · 2 comments
Closed

[main] Analyzers throwing exception during build in VMR #4810

Winniexu01 opened this issue Dec 24, 2024 · 2 comments
Labels
area-infra Source-build infrastructure and reporting ops-monitor Issues created/handled by the source build monitor role untriaged

Comments

@Winniexu01
Copy link
Member

Winniexu01 commented Dec 24, 2024

Failing build (internal Microsoft link)

'source-build-reference-packages' failed during build:

CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.AddGeneratedComClassAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.ConvertComImportToGeneratedComInterfaceAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.GeneratedComInterfaceAttributeAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.RuntimeComApiUsageWithSourceGeneratedComAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.ConvertToLibraryImportAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.LibraryImportGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.LibraryImportGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.CustomMarshallerAttributeAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.LibraryImportGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.LibraryImportGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.NativeMarshallingAttributeAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.LibraryImportGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.LibraryImportGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'System.Text.RegularExpressions.Generator.UpgradeToGeneratedRegexAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.System.Text.RegularExpressions.Generator.SR.resources" among the resources "" embedded in the assembly "System.Text.RegularExpressions.Generator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.AddGeneratedComClassAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.ConvertComImportToGeneratedComInterfaceAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.GeneratedComInterfaceAttributeAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.RuntimeComApiUsageWithSourceGeneratedComAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.ComInterfaceGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.ComInterfaceGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.ConvertToLibraryImportAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.LibraryImportGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.LibraryImportGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.CustomMarshallerAttributeAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.LibraryImportGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.LibraryImportGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'Microsoft.Interop.Analyzers.NativeMarshallingAttributeAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.Microsoft.Interop.LibraryImportGenerator.SR.resources" among the resources "" embedded in the assembly "Microsoft.Interop.LibraryImportGenerator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
CSC : error AD0001: Analyzer 'System.Text.RegularExpressions.Generator.UpgradeToGeneratedRegexAnalyzer' threw an exception of type 'System.Resources.MissingManifestResourceException' with message 'Could not find the resource "FxResources.System.Text.RegularExpressions.Generator.SR.resources" among the resources "" embedded in the assembly "System.Text.RegularExpressions.Generator", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'. [/__w/1/s/src/source-build-reference-packages/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.0/System.Diagnostics.DiagnosticSource.9.0.0.csproj::TargetFramework=net9.0] [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
/__w/1/s/src/source-build-reference-packages/eng/DotNetBuild.props(28,5): error MSB3073: The command "./build.sh --configuration Release /bl:/__w/1/s/src/source-build-reference-packages/artifacts/sourcebuild-dependency-projects.binlog /p:LocalNuGetPackageCacheDirectory=/__w/1/s/artifacts/obj/source-build-reference-package-cache /p:SourceBuildOutputDir=/__w/1/s/src/source-build-reference-packages/artifacts/sb/ /p:BuildDependencyPackageProjects=true /p:SetUpSourceBuildIntermediateNupkgCache=true /p:DotNetBuildOrchestrator=true /p:DotNetBuildSourceOnly=true /p:DotNetBuildInnerRepo=true /p:MicrosoftNetCoreIlasmPackageRuntimeId=linux-x64  /p:RestoreConfigFile=/__w/1/s/artifacts/obj/source-build-reference-packages/NuGet.config" exited with code 1. [/__w/1/s/.packages/BootstrapPackages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24604.4/tools/Build.proj]
    0 Warning(s)
    19 Error(s)
@Winniexu01 Winniexu01 added the ops-monitor Issues created/handled by the source build monitor role label Dec 24, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added area-infra Source-build infrastructure and reporting untriaged labels Dec 24, 2024
@Winniexu01 Winniexu01 changed the title [main] source-build-reference-packages building failed with CSC : error AD0001 [main] Analyzers throwing exception during build in VMR Dec 26, 2024
@Youssef1313
Copy link
Member

We are seeing the same in microsoft/testfx#4258

@Winniexu01
Copy link
Member Author

The latest pipeline run is green with dotnet/sdk#45635

@github-project-automation github-project-automation bot moved this from Backlog to Done in .NET Source Build Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infra Source-build infrastructure and reporting ops-monitor Issues created/handled by the source build monitor role untriaged
Projects
Status: Done
Development

No branches or pull requests

3 participants