GVKun编程网logo

Visual Studio“无法复制”....在构建期间(vs2019中不能复制粘贴)

33

如果您想了解VisualStudio“无法复制”....在构建期间的相关知识,那么本文是一篇不可错过的文章,我们将对vs2019中不能复制粘贴进行全面详尽的解释,并且为您提供关于asp.net–如何在

如果您想了解Visual Studio“无法复制”....在构建期间的相关知识,那么本文是一篇不可错过的文章,我们将对vs2019中不能复制粘贴进行全面详尽的解释,并且为您提供关于asp.net – 如何在构建期间从Visual Studio调用aspnet_compiler?、Blend Visual studio 和Visual studio 的区别、c# – Visual Studio 2010无法打开Visual Studio 2012修改的2010解决方案、c# – Visual Studio“无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8888”的有价值的信息。

本文目录一览:

Visual Studio“无法复制”....在构建期间(vs2019中不能复制粘贴)

Visual Studio“无法复制”....在构建期间(vs2019中不能复制粘贴)

在构建我的 VS2012 C# 项目期间,我不断收到此错误

Error   41  Could not copy "obj\Debug\WeinGartner.WeinCad.exe" to "bin\Debug\WeinGartner.WeinCad.exe".  Exceeded retry count of 10. Failed.Error   42  Unable to copy file "obj\Debug\WeinGartner.WeinCad.exe" to"bin\Debug\WeinGartner.WeinCad.exe". The process cannot access the file''bin\Debug\WeinGartner.WeinCad.exe'' because it is being used by another process.

现在我发现杀死进程

Weingartner.WeinCad.vhost.exe

有效(有时),但这让我很紧张。有什么办法可以完全阻止这种情况的发生?

我的调试器设置是

在此处输入图像描述
在此处输入图像描述

答案1

小编典典

我在 Visual Studio 2013 中遇到过类似的错误消息。

大多数情况下,我发现这种情况发生在调试过程因异常而停止时。

当 clean+build 没有为我解决这个问题时,我通过执行以下操作取得了成功:

  • 关闭 Visual Studio
  • 删除binobj文件夹,以及
  • 重新打开 Visual Studio。

这个“错误”自 Visual Studio 2003 以来就存在。

最后,我还发现我通常可以通过简单地重命名可执行文件然后删除它来解决这个问题。

asp.net – 如何在构建期间从Visual Studio调用aspnet_compiler?

asp.net – 如何在构建期间从Visual Studio调用aspnet_compiler?

我想要Visual Studio到 precompile my ASP.NET application,它用作Azure Web角色有效负载.所以我发现 this post解释了如何调用aspnet_compiler来验证视图.

我尝试将以下内容添加到我的ASP.NET应用程序的“post-build event”中:

call "%VS100COMNTOOLS%\vsvars32.bat"
aspnet_compiler -v / -p $(ProjectDir)

或者这个(显式指定的应用程序名称):

call "%VS100COMNTOOLS%\vsvars32.bat"
aspnet_compiler -v /ASP.NET-Application-ProjectNameHere -p $(ProjectDir)

在构建运行的两种情况下,我在构建输出中看到以下内容:

Setting environment for using Microsoft Visual Studio 2010 x86 tools.
Utility to precompile an ASP.NET application
copyright (C) Microsoft Corporation. All rights reserved.

并且显然没有预编译,因为如果我将任何.aspx或.cshtml文件“Build Action”更改为“None”,它将无法访问Azure服务包,并且一旦将包部署到Azure,视图就不再打开.

如何在Visual Studio中设置aspnet_compiler以进行预编译?

解决方法

如果要在Visual Studio / msbuild中使用Asp.NET编译器,则可以添加
AspNetCompiler任务到项目文件(.csproj / .vbproj)并将MvcBuildViews设置为true.

例:

<Project>
  <PropertyGroup>
    <MvcBuildViews>true</MvcBuildViews>
  </PropertyGroup>
  <!-- ... -->
  <Target Name="PrecompileWeb" AfterTargets="build" Condition="'$(MvcBuildViews)'=='true'">
    <Message Text="Starting AspNetCompiler for $(ProjectDir)" Importance="high" />
    <AspNetCompiler
        VirtualPath="temp"
        PhysicalPath="$(WebProjectOutputDir)"
        Force="true"
    />
  </Target>
  <!-- ... -->
</Project>

您还可以设置TargetPath属性以指定目标目录.

AfterTargets =“build”类似于“post-build event”.详见Target Build Order.

Blend Visual studio 和Visual studio 的区别

Blend Visual studio 和Visual studio 的区别

blend for visual studio 这个并不是用于开发中写代码的,而是专门用来做WPF的界面设计的。这是为了让专业的人做专业的事,尽量让写代码的人只使用visual studio,而做界面设计的(如美工)只需要画界面。
vs是开打代码的

c# – Visual Studio 2010无法打开Visual Studio 2012修改的2010解决方案

c# – Visual Studio 2010无法打开Visual Studio 2012修改的2010解决方案

基本上,我有一个使用Visual Studio 2010 Express在C#中编写的项目,然后尝试使用Visual Studio 2012 Express与该文件,现在VS2010说:

“The selected file is a solution file,but was created by a newer version of this application and cannot be opened.”

现在我已经看了一下这个,微软表示,如果你不使用VS2012的任何东西,你仍然可以使用2010.那么,我已经尝试了VS2012中的内置测试,那就是VS2012唯一具体的,但从我的项目(测试项目)中删除它,仍然说它是由一个较新的版.

那么,您如何使VS2012修改的VS2010解决方案再次与VS2010配合使用?

解决方法

SP1为VS 2010需要打开VS 2012修改的解决方案.

c# – Visual Studio“无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8888”

c# – Visual Studio“无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8888”

我尝试在本地计算机上通过Visual Studio运行解决方案.我看到网页出现并在页面上收到错误:无法连接到远程服务器
无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8888

加载的页面是http://localhost:5009/,当我尝试localhost:8888时,我收到“此页面无法显示”

认为它可能与防火墙有关所以我打开了端口8888,但问题仍然存在

有人建议这可能是Visual Studio 2013隐藏的IIS Express问题但我无法找到它的配置.

谢谢

解决方法

我有同样的问题.这是指向fiddler的配置.我删除了web.config文件中的fiddler配置并解决了问题.
<defaultProxy enabled="true" useDefaultCredentials="true">
  <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>

关于Visual Studio“无法复制”....在构建期间vs2019中不能复制粘贴的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于asp.net – 如何在构建期间从Visual Studio调用aspnet_compiler?、Blend Visual studio 和Visual studio 的区别、c# – Visual Studio 2010无法打开Visual Studio 2012修改的2010解决方案、c# – Visual Studio“无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8888”等相关内容,可以在本站寻找。

本文标签: