-
At present, my project is like this:
But there is a problem, and the compiler prompts:
I don't know what's going on. I guess it's some msbuild instructions. I wonder if there is an easy way to debug the source code of OC, such as a symbol server? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@hyzx86 for version 1.1. certain Modules has symbols published but some don't - issue is tracked here #9990 |
Beta Was this translation helpful? Give feedback.
-
Update:
更新一下:
Powershell # $myPath = xxxx.Cms.Web\bin\Debug\net5.0\
$ocpath = "..\OrchardCore\src\OrchardCore.Cms.Web\bin\Debug\net5.0\"
$ocBuild = Get-ChildItem $ocpath
$mybuild= Get-ChildItem $myPath | Where-Object { $_.Name -match"^OrchardCore(.*)dll" }
foreach( $my in $mybuild){
foreach($ocItem in $ocBuild){
if($my.Name -eq $ocItem.Name){
Copy $ocItem.FullName $my.PSParentPath
Copy $ocItem.FullName.Replace("dll","pdb") $my.PSParentPath
if(Test-Path $ocItem.FullName.Replace("dll","xml")){
Copy $ocItem.FullName.Replace("dll","xml") $my.PSParentPath
}
Write-Host "Replaced : " $my.FullName
}
}
} |
Beta Was this translation helpful? Give feedback.
Update:
I've found it easier to debug OC code this way, the only downside is that it's not in the same solution
更新一下:
我发现这种方式可以更方便的调试OC代码,唯一的不足就是不在同一个解决方案
Powershell