Visual Studio项目总是重建,但未更新pdb
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Visual Studio项目总是重建,但未更新pdb相关的知识,希望对你有一定的参考价值。
我已启用详细日志记录。
我总是得到这个:
1>FastUpToDate: Input 'C:DevelopmentSourceDotNetcommonBentley.APM.Common.ODBCobjproject.assets.json' is newer (5/5/2020 8:52:58 AM) than earliest output 'C:DevelopmentSourceDotNetinx64ReleaseBentley.APM.Common.ODBC.pdb' (5/1/2020 11:17:23 PM), not up to date. (Bentley.APM.Common.ODBC)
在bin文件夹中,每次构建时dll时间戳都会更新。但是相应的pdb时间戳记是DAYS之前的。
我认为只有在我手动编辑保持“重建”状态的项目中的文件之一时,pdb才会更新。
这里是一些看起来有点令人担忧的输出:
Failed to resolve all items referenced by 'Service ProvidersIvara.ServiceProvider.InteroperabilityIvara.ServiceProvider.Interoperability.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'commonAuthenticationBentley.APM.Authentication.Oidc.ClientBentley.APM.Authentication.Oidc.Client.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'commonAuthenticationBentley.APM.Authentication.SSPIBentley.APM.Authentication.SSPI.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'commonAuthenticationBentley.APM.Authentication.InterfacesBentley.APM.Authentication.Interfaces.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'commonAuthenticationBentley.APM.Authentication.CommonBentley.APM.Authentication.Common.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'commonIvaraCommonIvaraCommon.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersBentley.APM.ServiceProvider.GraphQLBentley.APM.ServiceProvider.GraphQL.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersRest.CommonRest.Common.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersIvara.ServiceProvider.InteroperabilityTestIvara.ServiceProvider.Interoperability.Test.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersBentley.APM.ServiceProvider.GraphQLTestsBentley.APM.ServiceProvider.GraphQL.Tests.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersBentley.APM.ServiceProvider.GraphQLUnitTestsBentley.APM.ServiceProvider.GraphQL.UnitTests.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersRest.Common.TestsRest.Common.Tests.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersIvara.ServiceProvider.MobileRestServiceUnitTestsIvara.ServiceProvider.MobileRestService.UnitTests.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersIvara.ServiceProvider.MobileRestServiceTestIvara.ServiceProvider.MobileRestService.Test.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'UtilitiesServiceProviderHostServiceProviderHost.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'TestingInfrastructureTestConfigurationAppTestSettings.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'TestingInfrastructureTestFrameworkTestFramework.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at VSLangProj80.Reference3.get_SourceProject()
at NuGet.PackageManagement.VisualStudio.VsCoreProjectSystemReferenceReader.IsProjectReference(Reference3 reference, ILogger logger)
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at VSLangProj80.Reference3.get_SourceProject()
at NuGet.PackageManagement.VisualStudio.VsCoreProjectSystemReferenceReader.IsProjectReference(Reference3 reference, ILogger logger)
Failed to resolve all items referenced by 'EXPLinkEXPLinkTestSuiteExtensionsEXPLinkTestSuiteExtensions.vcxproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'Service ProvidersIvara.ServiceProvider.MobileRestServiceIvara.ServiceProvider.MobileRestService.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Running restore with 12 concurrent jobs.
Reading project file C:DevelopmentSourceDotNetcommonBentley.APM.Common.ExtensionsBentley.APM.Common.Extensions.csproj.
我已启用详细日志记录。我总是得到这个:1> FastUpToDate:输入'C: Development Source DotNet common Bentley.APM.Common.ODBC obj project.assets.json'是较新的(5/5/2020 8: 52:58 AM)...
以上是关于Visual Studio项目总是重建,但未更新pdb的主要内容,如果未能解决你的问题,请参考以下文章
如果 Visual Studio 项目的设置取决于更改的环境变量,则不会自动重建 Visual Studio 项目