c# - visual studio 2015 在构建时卡住,杀死 find.exe(三次)完成构建过程

标签 c# .net visual-studio-2015 freeze

当我构建一个相当复杂的解决方案时,Visual Studio 2015 卡住了...

我发现构建会启动“find.exe”并杀死“find.exe”让构建完成。

我有另一个类似复杂性的项目,它构建良好而无需我杀死任何东西。

项目是.Net4.0全框架,大部分项目是c#

我真的没有看到任何关于它为什么挂起的提示,而且从控制台的构建输出来看,它似乎每次都卡在不同的地方。

非常感谢任何帮助

最佳答案

我已经解决了问题...

在一些“预构建”脚本中,我从命令行和 vs2010/2012 调用了一个“replaceString.bat”批处理文件……它运行良好。但在 2015 年,如前所述,它在 find.exe 运行时停滞了...... 错误批处理文件的内容是这样的:

@echo off
REM -- Prepare the Command Processor --
SETLOCAL ENABLEEXTENSIONS
SETLOCAL DISABLEDELAYEDEXPANSION

::BatchSubstitude - parses a File line by line and replaces a substring"
::syntax: BatchSubstitude.bat OldStr NewStr File
::          OldStr [in] - string to be replaced
::          NewStr [in] - string to replace with
::          File   [in] - file to be parsed
:$changed 20100115
:$source http://www.dostips.com
if "%~1"=="" findstr "^::" "%~f0"&GOTO:EOF
for /f "tokens=1,* delims=]" %%A in ('"type %3|find /n /v """') do (
    set "line=%%B"
    if defined line (
        call set "line=echo.%%line:%~1=%~2%%"
        for /f "delims=" %%X in ('"echo."%%line%%""') do %%~X
    ) ELSE echo.
)

我现在用 .net exe 文件替换它并且它可以工作

关于c# - visual studio 2015 在构建时卡住,杀死 find.exe(三次)完成构建过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35047230/

相关文章:

c# - 使用空白数组反序列化 JSON 对象

C# 8 从具体类型中调用默认实现

c# - 为什么 C# 无法相互比较两种对象类型,而 VB 却不能?

.net - 无法在 NavigationView MenuItemTemplate 中绑定(bind) Icon 属性

c# - 找不到 VSCode .NET Core SDK

c# - C#中灵活的对象创建

linux - 无法找到 bscmake.exe - 仅在 linux 编译期间

c++ - 错误 LNK2001 __imp_fprintf Visual Studio 2015 RC

c# - 更新后 System.Reflection 多个程序集错误

c# - 单元测试未显示为覆盖方法