小编Pet*_*ney的帖子

使用C#进行Windows shell扩展

我想写一个简单的Windows shell扩展来添加到上下文菜单,而C#是我最近使用的语言.它是shell扩展的一个不错的选择吗?接口是否易于使用?是否有额外的开销导致菜单弹出更慢?

任何人都有良好的入门指针?

c# windows-shell shell-extensions

37
推荐指数
3
解决办法
3万
查看次数

在Windows 7下调用powershell脚本的msbuild会出现签名错误

我们有一个powershell构建脚本,可以调用其他脚本,这些脚本在Windows 7 64位下给我带来了麻烦.它在XP下工作正常.我已经将set-executionpolicy运行到RemoteSigned(并且还尝试使用Bypass和Unrestricted).我可以从错误消息中拉出命令行并自己运行它,一切运行正常.

构建错误在这里看起来很糟糕; 但我还是把它们包括在内以保持完整性.


Project "C:\dev7\Source\DashPortal\DashboardGenerator\DashboardGenerator.csproj" (2) is building "C:\dev7\Source\DashPo
rtal\DashboardController\DashboardController.csproj" (15) on node 0 (default targets).
  File C:\Users\pmckinney.NA\Documents\WindowsPowerShell\profile.ps1 cannot be lo
  aded because the execution of scripts is disabled on this system. Please see "g
  et-help about_signing" for more details.
  At line:1 char:2
  + . <<<<  'C:\Users\pmckinney.NA\Documents\WindowsPowerShell\profile.ps1'
      + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
      + FullyQualifiedErrorId : RuntimeException

  File C:\dev7\Source\DashPortal\DashboardController\..\..\..\Build\createReportI
  nstallScript.ps1 cannot be loaded because the execution of scripts is disabled
  on this system. Please see "get-help about_signing" …
Run Code Online (Sandbox Code Playgroud)

msbuild powershell windows-7

14
推荐指数
1
解决办法
2750
查看次数