我有以下nuspec
文件:添加.NET框架依賴於nuspec文件
<?xml version="1.0"?>
<package >
<metadata>
<id>Project.Proxy</id>
<version>0.0.1</version>
<title>Project.Proxy</title>
<authors>Company name</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Proxy component to access a repository.</description>
<copyright>Copyright 2017</copyright>
<tags>tag1 tag2</tags>
</metadata>
</package>
有了這個,我創建了NuGet包,但是當我試圖在另一個項目中安裝它,我是收到錯誤:
Could not install package 'Project.Proxy 0.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
所以我需要添加到我的nuspec
文件,以使其兼容.NET 4.6的項目是什麼?
什麼是創建包的項目的框架版本? – doker
版本是4.6.1。這兩個項目都有這個版本。 –
打開它時,nupkg是什麼,因爲它是zip(它是一個zip)。那裏有什麼文件夾?有沒有lib文件夾? lib文件夾有什麼文件夾?它裏面有.dll文件嗎? – doker