如何使用Powershell在4.6 .NET框架项目中安装4.5框架NuGet包? [英] How to install 4.5 framework NuGet package in 4.6 .NET framework project using Powershell ?

查看:241
本文介绍了如何使用Powershell在4.6 .NET框架项目中安装4.5框架NuGet包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下示例显示了支持库的四个版本的文件夹结构:



    \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屋!

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