找不到依赖项清单中指定的程序集 - package:'Microsoft.Data.Edm', [英] assembly specified in the dependencies manifest was not found -- package: 'Microsoft.Data.Edm',

查看:141
本文介绍了找不到依赖项清单中指定的程序集 - package:'Microsoft.Data.Edm',的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

请原谅我,如果这是在错误的论坛/类别 -   我是视觉新手C#,Visual Studio,.NET和Windows,来自unix / C环境

Forgive me if this is in the wrong forum/category - I am new to visual C#, Visual Studio, .NET and windows, having come from unix/C envronments

我的开发设置是:

Windows10 < br $>
VisualStudio 2017社区v15.3

.NET Framework 4.6.01586

.NET核心SDK v2

Windows10
VisualStudio 2017 Community v15.3
.NET Framework 4.6.01586
.NET core SDK v2

我的目标设置是

Ubuntu 16.04-arm服务器

.NET核心2.0.0运行时

Ubuntu 16.04-arm server
.NET core 2.0.0 runtime

我创建了默认控制台应用。并发布了这个,将文件复制到服务器,chmod + x应用程序并成功运行它。我在Windows上的第一个应用程序移植到arm! 

I have created a default console app. and published this, copying files over to the server, chmod +x the app and run it successfully. My first app on Windows ported to arm ! 

接下来我想我会创建一个Web API应用程序,所以我创建了一个默认应用程序

So next I thought I would create a Web API app, so I created a default app

与控制台应用程序类似,我不得不更改csproj文件以指定netcore和运行时版本。这是我的csproj:

Similarly to the console app, I had to change the csproj file to specify netcore and runtime version. This is my csproj:

<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>

    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <RuntimeFrameworkVersion>2.0.0-preview1-005977-00</RuntimeFrameworkVersion>
    <RuntimeIdentifiers>win8-arm;ubuntu.14.04-arm;ubuntu.16.04-arm</RuntimeIdentifiers>
    
    <UserSecretsId>aspnet-WebApplication1-1C14C136-9713-4BB4-ABB5-51F58758E63B</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="wwwroot\" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0-preview1-005977-00" />
  </ItemGroup>

  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0-preview1-005977-00" />
  </ItemGroup>

</Project>

此特定运行时适用于控制台应用程序,但是当我构建并运行时默认的Web应用程序,它在主机上的浏览器上打开,但在服务器运行时我得到: -

This particular runtime worked for the console app, but when I build and run the default web app , it opens on a browser on the host, but on the server runtime I get:-

ubuntu@ubuntu:~/published$ ./WebApplication1
Error: assembly specified in the dependencies manifest was not found -- package: 'Microsoft.Data.Edm', version: '5.8.2', path: 'lib/netstandard1.1/de/Microsoft.Data.Edm.resources.dll'
ubuntu@ubuntu:~/published$

我不得不做一本手册"dotnet restore"在dev项目文件夹中(不应该是Visual Studio为我做这个吗?)并且我注意到NuGet的一些后来的软件包被下载用于某些程序集作为preview1-final,但大部分保留在
2.2.0 -preview1-005977。不确定是否有任何影响?

I had to do a manual "dotnet restore" in dev project folder (shouldnt visual studio do this for me?) and I noticed that some later  packages from NuGet were downloaded for some of the assemblies as  preview1-final , but most remain at 2.2.0-preview1-005977 . not sure if that has any bearing?

所以我甚至无法运行默认的web api应用程序,因为它是用new创建的 - > ;项目,任何想法?

So i cant run even a default web api app , as per it is created with new->Project, any ideas?

推荐答案

嗨ninjaef,

Hi ninjaef,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

>>所以我甚至无法运行默认的web api应用程序,因为它是使用new-> Project创建的,任何想法?

你的意思是你创建一个新的ASP .NET Web应用程序 - Web API,直接构建和运行,它失败了吗?如果是这样,请您分享详细错误消息,它将帮助我们分析此问题。

Do you mean when you create a new ASP.NET web application—Web API, directly build and run, it is failed? If so, could you please share the detail error message and it will help us to analysis this issue.

同时,您可以以管理员身份重新运行VS 2017安装程序并单击旁边的图标'启动',选择'修复'来修复它。

Meanwhile, you can re-run the VS 2017 installer as administrator and click the icon beside ‘Launch’, select ‘Repair’ to repair it.

如果你的意思是你改变了上面描述的csproj文件并且运行失败了,这个问题是关于.net核心的开发,请重定向到这个适当的论坛:  https://forums.asp.net/1255 .aspx / 1?ASP + NET + Core
并为你的问题开始一个新线程,你将从那里获得更专业的支持,因为我们的论坛是讨论VS IDE,谢谢你理解。

If you mean after you changed the csproj file as you described above and the run was failed, this issue is about the .net core development, please redirect to this appropriate forum:  https://forums.asp.net/1255.aspx/1?ASP+NET+Core and start a new thread for your issue, you will get a more professional support from there, since our forum is to discuss the VS IDE, thank you for your understanding.

祝你好运,

Sara


这篇关于找不到依赖项清单中指定的程序集 - package:'Microsoft.Data.Edm',的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆