如何使用Powershell在4.6 .NET框架项目中安装4.5框架NuGet包? [英] How to install 4.5 framework NuGet package in 4.6 .NET framework project using Powershell ?
问题描述
以下示例显示了支持库的四个版本的文件夹结构:
  \lib
    \ net45
        \ MyAssembly.dll
    \ net46
        \ MyAssemblycore.dll
我们有4.6 .Net框架项目。如何安装NuGet包并在该项目中引用MyAssembly.dll?
$
可以在4.6 .NET框架项目中安装不同的框架吗?
你能建议任何其他解决方案吗?
The following example shows a folder structure that supports four versions of a library:
\lib
\net45
\MyAssembly.dll
\net46
\MyAssemblycore.dll
We have 4.6 .Net framework project. How to install NuGet package and refer MyAssembly.dll in that project?
Its possible to install different framework in 4.6 .NET framework project?
Can you please suggest any other solution ?
推荐答案
我们有4.6 .Net框架项目。如何安装NuGet包并在该项目中引用MyAssembly.dll?
$
以下示例显示了支持库的四个版本的文件夹结构:
  \lib
    \ net45
        \ MyAssembly.dll
    \ net46
        \ MyAssemblycore.dll
可以在4.6 .NET框架项目中安装不同的框架吗?
能否请您提出其他解决方案?
We have 4.6 .Net framework project. How to install NuGet package and refer MyAssembly.dll in that project?
The following example shows a folder structure that supports four versions of a library:
\lib
\net45
\MyAssembly.dll
\net46
\MyAssemblycore.dll
Its possible to install different framework in 4.6 .NET framework project?
Can you please suggest any other solution ?
这篇关于如何使用Powershell在4.6 .NET框架项目中安装4.5框架NuGet包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!