相关疑难解决方法(0)

如何在vs2012中将发布配置文件添加到新的sln?

我已阅读发布配置文件已取代WDP

但我找不到像样的教程

如何添加和修改pubxml文件到我的项目

任何帮助将不胜感激

c# asp.net asp.net-mvc web-deployment visual-studio-2012

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

发布时Asp核心错误的程序集重定向

使用visual studio发布我的asp核心项目时,.config会在我的可执行文件旁边创建一个文件.

.config包括几个bindingRedirect这样的:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="6.0.0.0" newVersion="8.0.0.0" />
        <bindingRedirect oldVersion="7.0.0.0" newVersion="8.0.0.0" />
        <bindingRedirect oldVersion="6.0.0.0" newVersion="9.0.0.0" />
        <bindingRedirect oldVersion="8.0.0.0" newVersion="9.0.0.0" />
        <bindingRedirect oldVersion="7.0.0.0" newVersion="9.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Serilog" publicKeyToken="24c2f752a8e58a10" culture="neutral" />
        <bindingRedirect oldVersion="1.5.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="1.1.37.0" newVersion="1.2.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="1.2.0.0" newVersion="1.3.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>
Run Code Online (Sandbox Code Playgroud)

在这里,我想将 …

assembly-binding-redirect asp.net-core dotnet-cli

9
推荐指数
1
解决办法
1132
查看次数

如何添加嵌套的Web.config文件?

我尝试将新的web.config文件添加到我的asp.net应用程序中(我右键单击了项目 - >添加 - > Web配置文件).
但是,在解决方案资源管理器中,新添加的文件未嵌套在Web.config下.任何的想法?
看图像 -
我希望Web.Staging.config像Web.Release.config一样嵌套:
Solution Explorer
(假设VS 2012或2013).

c# asp.net visual-studio

7
推荐指数
2
解决办法
6206
查看次数