小编Raj*_*Raj的帖子

找不到Microsoft.web.Infrastructure.dll - Visual Studio 2015

我在我的解决方案的许多项目的package.config中有这个dll(Microsoft.web.Infrastructure.dll).没有构建错误,并且DLL已下载到Solution的packages文件夹中.我在应用程序命中的每个项目上丢失dll时遇到运行时错误.当我查看单个项目bin文件夹时,我没有看到这个dll被复制.但是正如我之前提到的那样,dll被下载到解决方案的packages文件夹中.

临时解决方案 -

  1. 手动将此dll复制到所有单个项目箱
  2. 将此dll放在GAC中

这个问题只出现在我的机器上,而不是任何其他同事的机器上.令人惊讶的是,有些人将这个dll复制到项目文件夹中,而其中一些没有.它适用于他们没有GAC中的这个DLL并且没有任何手动操作,干净的重建为他们做了一切.

我有一个短期的修复,但我更好奇,知道它如何在其他机器上工作,我错过了什么.

到目前为止我尝试过的东西 - 清理Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root ....清理解决方案并关闭重新打开解决方案,最后重建解决方案

与visual studio 2013相比,Visual Studio 2015没有清晰的nuget缓存.

仅供参考 - 我有Visual Studio 2015和所有其他机器都在2013年,如果不是别的,这就是我现在正在看的地方.

任何帮助表示赞赏.

.net c# nuget nuget-package visual-studio-2015

5
推荐指数
1
解决办法
6660
查看次数

将 MVC 5 项目迁移到 Angular 2

关于将 .Net MVC 5 项目迁移到 Angular 2 的方法的任何建议。这是一个大项目,我们不能等待完全过渡。当我们可以一次迁移几个页面并仍然继续使用旧项目时,我们正在寻找一种并行移动。

我看到了有关如何在 MVC 5 中使用 Angular 2 的解决方案,但我们不想在这里合并这些问题,因为我们在使用另一个 javascript 框架时遇到了一些问题。

感谢您的帮助。

.net model-view-controller asp.net-mvc-5 angular

2
推荐指数
1
解决办法
4413
查看次数

在Windows上运行dotnet watch时出错

我在运行dotnet watch run时遇到以下错误.

Unhandled Exception: System.FormatException: Could not parse the JSON file. 
Error on line number '0': ''. -
--> Newtonsoft.Json.JsonReaderException: Error reading JObject from 
JsonReader. Path '', line 0, position 0
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings 
settings)   at 

Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)
   at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
   --- End of inner exception stack trace ---
   at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
   at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
   at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
   at WebApplicationBasic.Startup..ctor(IHostingEnvironment env) in \Microservices\TestProject\Startup.cs:line 25
Run Code Online (Sandbox Code Playgroud)

我确认json文件没有错.如果有帮助,添加我的项目文件.这可能是无关紧要的,但我不知道在哪里看.

appsettings.json:

{
  "ASPNETCORE_ENVIRONMENT": "Development",
  "ConnectionStrings": {
    "Default": "Server=localhost; database=TestProject; Integrated Security=True"
  },
  "Logging": { …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net-core

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