Azure devops 调试期间未从Azure Devpos加载nuget包的索引源
正在尝试使用azure yml for build pipleline发布符号,以允许在azure devops中调试nuget pkg。我看到PDB文件已加载到symbols缓存文件夹,但stepping-thru会询问源文件在visual studio中的位置,即使我在发布symbol期间为源代码编制了索引 我尝试在VisualStudio调试中启用不同的选项,但似乎没有任何帮助 这是我的ymlAzure devops 调试期间未从Azure Devpos加载nuget包的索引源,azure-devops,nuget,azure-pipelines,visual-studio-debugging,debug-symbols,Azure Devops,Nuget,Azure Pipelines,Visual Studio Debugging,Debug Symbols,正在尝试使用azure yml for build pipleline发布符号,以允许在azure devops中调试nuget pkg。我看到PDB文件已加载到symbols缓存文件夹,但stepping-thru会询问源文件在visual studio中的位置,即使我在发布symbol期间为源代码编制了索引 我尝试在VisualStudio调试中启用不同的选项,但似乎没有任何帮助 这是我的yml # ASP.NET Core # Build and test ASP.NET Core pr
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) # need this for byBuildNumber verisonScheme nuget pack
# the build will trigger on any changes to the master branch
trigger:
- master
# the build will run on a Microsoft hosted agent, using the lastest Windows VM Image
pool:
vmImage: 'windows-latest'
# these variables are available throughout the build file
# just the build configuration is defined, in this case we are building Release packages
variables:
buildConfiguration: 'Release'
#The build has 3 seperate tasks run under 1 step
steps:
# The first task is the dotnet command build, pointing to our csproj file
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
command: 'build'
arguments: '--configuration $(buildConfiguration)'
projects: 'src/Common.Core/Common.Core.csproj'
- task: PublishSymbols@2
inputs:
symbolsFolder: '$(Build.SourcesDirectory)'
searchPattern: '**/bin/**/*.pdb'
indexSources: true
publishSymbols: true
symbolServerType: 'teamServices'
treatNotIndexedAsWarning: true
symbolsProduct: '$(Build.DefinitionName)'
symbolsVersion: '$(Build.BuildNumber)'
symbolsArtifactName: '$(name).Symbols_$(BuildConfiguration)'
# The second task is dotnet pack command again pointing to the csproj file
# The nobuild means the project will not be compiled before running pack, because its already built in above step
- task: DotNetCoreCLI@2
displayName: "dotnet pack"
inputs:
command: 'pack'
arguments: '--configuration $(buildConfiguration)'
packagesToPack: 'src/Common.Core/Common.Core.csproj'
nobuild: true
includeSymbols: true
versioningScheme: 'byBuildNumber'
# The last task is a nuget command, nuget push
# This will push any .nupkg files to the 'Nuget' artifact feed
# allowPackageConflicts allows us to build the same version and not throw an error when trying to push
# instead it just ingores the latest package unless the version changes
- task: NuGetCommand@2
displayName: 'nuget push'
inputs:
command: 'push'
feedsToUse: 'select'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'myNuget'
allowPackageConflicts: true
我希望在调试使用idnexed soruce代码启用符号的nuget包时,它会自动下载pdf文件和源代码
我看到PDB文件已加载到符号缓存文件夹,但
stepping-thru正在visual studio中请求源文件位置,
即使我在发布期间为源代码编制了索引
您应该让调试器知道在哪里可以找到源文件。首先,请将您的xx.nupkg重命名为xx.zip,并检查它是否包含必要的源文件
之后,您可以在解决方案资源管理器中右键单击解决方案=>Properties=>Debug Source Files,单击新行
选项将nuget源文件的路径添加到Debug Source Files
设置中
我希望在调试带有符号的nuget包时
启用idnexed soruce代码后,它会自动下载pdf
文件和源代码
也许你可以从你的朋友那里得到一些帮助。在为.net core
创建nuget包时,可以尝试将源文件的生成操作设置为C#compiler
我看到PDB文件已加载到符号缓存文件夹,但
stepping-thru正在visual studio中请求源文件位置,
即使我在发布期间为源代码编制了索引
您应该让调试器知道在哪里可以找到源文件。首先,请将您的xx.nupkg重命名为xx.zip,并检查它是否包含必要的源文件
之后,您可以在解决方案资源管理器中右键单击解决方案=>Properties=>Debug Source Files,单击新行
选项将nuget源文件的路径添加到Debug Source Files
设置中
我希望在调试带有符号的nuget包时
启用idnexed soruce代码后,它会自动下载pdf
文件和源代码
也许你可以从你的朋友那里得到一些帮助。当您为
创建nuget包时,可以尝试将源文件的生成操作设置为C#compiler
。net core
您好,是否有此问题的更新?您好,是否有此问题的更新?