nuget 相关问题

NuGet是一个免费的,开源的开发人员,专门用于.NET平台的包管理系统。

System.net.http vs.Microsoft.net.http

我与HTTPClient的包装相混淆。早些时候,它作为Microsoft.http.net Nuget软件包的一部分分发,而System.net.http则被认为是遗产。看起来现在恰恰相反:t ...

回答 1 投票 0


dotnet Restore即使在我的csproj文件中明确包含更高版本

当我在特定项目上运行DotNet还原时,我会得到此错误: 无法下载软件包'system.text.json.7.0.3' 这是因为它很脆弱,因此在我们的Nuget服务器上没有可用...

回答 1 投票 0

dotnet cli:还原nuget软件包而无需添加项目

我们在TeamCity服务器上构建dotnet工件,并希望将sqlpackage.commandline二进制文件与我们的构建输出一起包含。运行dotnet添加软件包sqlpackage.commandline产生“ ...

回答 2 投票 0



可以让Nuget延迟下载直到构建?

当我安装Nuget软件包时,它会立即将所有库将其复制到正确的位置。但是,这项练习的目的是将它们远离项目的GIT存储库,而Nuget在构建时进行下载。 这是可能的吗?

回答 2 投票 0


未包含在包装的nuget

我是C#和Nuget World的新手。

回答 1 投票 0

由于“安全”原因,我被迫使用另一个帐户来运行视觉工作室以进行某些管理级操作(主要是注册COM对象)。但是TFS只知道我的...

自从我上次进行密码更改并登录到一个特定的Nuget Feed(由HONES中的TFS / Azure DevOps Server托管)以来,有什么变化已发生变化。另外,我的git TFS帐户似乎没有使用正确的帐户。由同一TFS实例托管的不同提要(唯一的区别是供稿名称)正常工作。

回答 2 投票 0

无法获得中央软件包管理(CPM)按预期工作

在转换我们的旧应用程序(.NET 4.8)的过程中使用

回答 0 投票 0


如何防止Visual Studio / Rider的软件包经理调整某些.csproj<PackageReference>元素

<PackageReference Include="Foo.Bar" Version="1.2.4" Condition=" '$(IsForSimulator)' == 'false' "> <PackageReference Include="Foo.Bar" Version="1.2.3-force-dud" Condition=" '$(IsForSimulator)' == 'true' "> <NoWarn>$(NoWarn);NU1605</NoWarn> </PackageReference> 如果我使用Nuget Package Manager GUI更新Nuget软件包,则将更新两个元素! 我希望第二个保持不受影响。这可能吗? 我想出了一种有效的方法: inside .csproj仅保留此位 <!-- the condition must be on the item-group not on the package-ref! --> <ItemGroup Condition=" '$(IsForSimulator)' == 'false' "> <PackageReference Include="Foo.Bar" Version="1.2.4"> </ItemGroup> 现在创建一个称为“ nugettweaksforsimulators.targets”的单独文件,然后将其放入: <?xml version="1.0" encoding="utf-8"?> <!-- the package manager cannot affect these nuget-entries because they're livign on this side-file! --> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Condition=" '$(IsForSimulator)' == 'true' "> <PackageReference Include="Foo.Bar" Version="1.2.3-force-dud"> <NoWarn>$(NoWarn);NU1605</NoWarn> </PackageReference> </ItemGroup> </Project> 包括“ Nugettweaksforsimulators.targets”的“ nugettweaksforsimults”: <Import Project="NugetTweaksForSimulators.targets"/> 得出!

回答 1 投票 0

如何防止VisualStudio/Rider的软件包管理器调整某些.csproj<PackageReference>元素

<PackageReference Include="Foo.Bar" Version="1.2.4" Condition=" '$(IsForSimulator)' == 'false' "> <PackageReference Include="Foo.Bar" Version="1.2.3-force-dud" Condition=" '$(IsForSimulator)' == 'true' "> <NoWarn>$(NoWarn);NU1605</NoWarn> </PackageReference> 如果我使用Nuget Package Manager GUI更新Nuget软件包,则将更新两个元素! 我希望第二个保持不受影响。有可能吗? 我想出了一种有效的方法: inside .csproj仅保留此位 <!-- the condition must be on the item-group not on the package-ref! --> <ItemGroup Condition=" '$(IsForSimulator)' == 'false' "> <PackageReference Include="Foo.Bar" Version="1.2.4"> </ItemGroup> 现在创建一个称为“ nugettweaksforsimulators.targets”的单独文件,然后将其放入: <?xml version="1.0" encoding="utf-8"?> <!-- the package manager cannot affect these nuget-entries because they're livign on this side-file! --> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Condition=" '$(IsForSimulator)' == 'true' "> <PackageReference Include="Foo.Bar" Version="1.2.3-force-dud" Condition=" '$(IsForSimulator)' == 'true' "> <NoWarn>$(NoWarn);NU1605</NoWarn> </PackageReference> </ItemGroup> </Project> 包括“ Nugettweaksforsimulators.targets”的“ nugettweaksforsimults”: <Import Project="NugetTweaksForSimulators.targets"/> 得出!

回答 1 投票 0

是商业.NET组件中包含的代码签署第三方Nuget依赖性的行业标准?

我们开发了一个商业.NET组件,并依靠几个以Nuget软件包(例如SharpDx等)分发的第三方库。 我们的一些企业客户都要求所有集会 - 您...

回答 1 投票 0


Nuget:远程服务器返回了一个错误(403)forbidden

当我尝试安装一个软件包时,我会得到这个错误 远程服务器返回错误(403)禁止 我可以使用其他命令,例如get -package -listavailable,并发现是否存在...

回答 4 投票 0


现在您可以强迫Nuget更新具有及时固定的及传递软件包的版本吗?

有很多较旧的帖子,介绍了nuget默认为及时包装的最低兼容版本的方式,从而在代码中创建漏洞。看起来直到最近,...

回答 1 投票 0


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.