C# can';t在omnisharp中调试项目,即使使用DebugType=portable或embedded
我有一个.csproj文件,无法用Omnisharp在VS代码中调试。具体地说,当我试图调试它时,它会抱怨 警告:无法加载“[程序集名称].dll”的符号C:\Git\[project]\[assembly name]\bin\Debug\net472\[assembly name].pdb'是一个Windows pdb。跨平台.NET核心调试器不支持这些。 已加载“C:\Git\[project]\TestRunner\bin\Debug\net472\[assembly name].dll”。找不到或无法打开PDB文件 但我已将DebugType设置为可移植。我的.csproj文件如下所示:C# can';t在omnisharp中调试项目,即使使用DebugType=portable或embedded,c#,omnisharp,C#,Omnisharp,我有一个.csproj文件,无法用Omnisharp在VS代码中调试。具体地说,当我试图调试它时,它会抱怨 警告:无法加载“[程序集名称].dll”的符号C:\Git\[project]\[assembly name]\bin\Debug\net472\[assembly name].pdb'是一个Windows pdb。跨平台.NET核心调试器不支持这些。 已加载“C:\Git\[project]\TestRunner\bin\Debug\net472\[assembly name].dll”
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<VS_INSTALL_DIR Condition=" '$(VS_INSTALL_DIR)' == '' ">C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional</VS_INSTALL_DIR>
<LangVersion>8.0</LangVersion>
<NullableContextOptions>enable</NullableContextOptions>
<!-- NullableContextOptions was renamed to Nullable, and as of 2019-07-30, dotnet build supports one and Visual Studio supports the other.
We should delete NullableContextOptions when we can -->
<Nullable>enable</Nullable>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<DocumentationFile>bin\$(Configuration)\net472\$(AssemblyName).XML</DocumentationFile>
<NoWarn>1591;1573</NoWarn>
<!-- warns when a public member is missing an XML comment, warns when some params have XML comments and others don't -->
<DebugType>portable</DebugType>
<EmbedAllSources>true</EmbedAllSources>
<DebugSymbols>true</DebugSymbols>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Launch (console)",
"type": "clr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/TestRunner/bin/Debug/net472/TestRunner.exe",
"args": [],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"TestRunner/TestRunner.fsproj"
],
"problemMatcher": "$msCompile"
}
]
}