我已经在几个问题上看到过这个问题,当您在本地构建时,所有解决方案都可以正常工作。我目前在 visualstudio.com 上有我的代码,每当我从我的机器上推送代码时,我都会自动构建。
我知道您必须安装一个 nuget 包(我有)并从以下链接安装类型:
http://go.microsoft.com/fwlink/?LinkID=239644&clcid=0x409
问题是,我不知道如何从我的浏览器安装它,因为它是在云端构建的。
我错过了什么吗?
最佳答案
我在网上找到的所有提示都不适合我,我想记录下对我有用的解决方案:
我安装了 Nuget 包并在 app/web.config 中创建了以下重定向:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
</dependentAssembly>
</assemblyBinding>
我在这里找到了必要的信息: https://github.com/aspnet/EntityFramework6/issues/244
关于c# - 在 visual studio online 上找不到 Microsoft.SqlServer.Types 的版本 10 或更高版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45279159/