nuget 相关问题

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

使用 VSCode 将 nuget 包从 Gitlab 安装到 Ubuntu

我在使用从 gitlab 下载的特定 nuget 包时遇到问题。我们在检索时要么收到错误“NU1301:无法加载源的服务索引”,要么收到 401 错误

回答 1 投票 0

连接到 Nuget 的问题。无法关闭代理

在 Visual Studio 2017 中,我尝试连接到 nuget 服务器来更新一些内容,但出现此错误: [nuget.org] 无法加载源 https://api.nuget.org/v3 的服务索引...

回答 3 投票 0

NuGet 包管理器错误:无法解析远程名称

我使用的是 1.4 版本并收到此错误: 无法解析远程名称:go.microsoft.com 以下是 nuget 包的 URL: https://go.microsoft.com/fwlink/?LinkID=206669 一个...

回答 8 投票 0

Dotnet pack - 生成的包没有依赖项

我正在尝试使用 Azure-Devops 管道来创建和更新依赖于 Newtonsoft.Json nuget 包的 nuget 包。 如果我使用 Nuget Package Explorer 手动创建包,那么我...

回答 1 投票 0

尝试更新 Nuget 包失败

我在团队环境中工作,他们设置了 NuGet Stream 来共享一些项目。我最近刚刚了解了我的一个项目的最新情况,并注意到 packages.config 已更新以引用...

回答 2 投票 0

使用 Azure DevOps 为 .NET8 MAUI 创建 NuGet 包

我创建了一个 .NET8 MAUI 类库以在 MAUI 项目中使用。该存储库位于 Azure DevOps 中,我尝试通过 NuGet 构建和发布该包。 为此,我编写了一个 YAML 文件 扳机: - ...

回答 1 投票 0

UWP 应用尝试将打包的本机 .exe 文件加载为 C# 程序集

我有一个 nuget 包,其中包含本机库和一个 .exe 程序(MinidumpWriter.exe),用于处理崩溃。该库通过给定协议调用打包的 exe 来工作(

回答 1 投票 0

GitHub 操作需要从私有 GitHub 注册表恢复 NuGet 包

我有一个库项目,我正在尝试为其创建 GitHub 操作。此操作将为我的项目创建一个 NuGet 包,但首先需要从 NuGet.org 和

回答 1 投票 0

Github Actions 中的 dotnet 还原给出 401 未经授权

GitHub 上的 NET6 项目无法在 GitHub Actions 中进行 dotnet 恢复。 dotnet 恢复在本地工作正常。查看操作日志,似乎 GH 在我的 GitHub 包中查找 Microsoft 依赖项

回答 1 投票 0

软件包 Humanizer.Core.XX 2.14.1 与 net8.0 不兼容(.NETCoreApp 版本=v8.0)

使用 EF Core 将我的 ASP.NET 项目从 .NET 7 升级到 .NET 8 后,我收到这些警告,阻止我在 Rider 中安装任何 NuGet 包。该项目仍然可以构建和编译。我...

回答 1 投票 0

非 MVC6 项目上的 Visual Studio 2015 Nuget 错误

我今天启动了 VS 2015 来完成一些工作,它说有一个 nuget 更新,所以我更新了它。 之后,我创建了一个新项目来测试一些东西,但没有安装 nuget。打开上一个...

回答 3 投票 0

为什么nuget包中包含的静态资源在project.assets.json文件中,但实际上不在项目中

我在要打包的 Client1.csproj 中使用以下代码: net8.0 我在我想要打包的Client1.csproj中使用此代码: <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <AssemblyVersion>1.0.0.8794</AssemblyVersion> <StaticWebAssetBasePath>Client1</StaticWebAssetBasePath> <IsPackable>true</IsPackable> <GeneratePackageOnBuild>True</GeneratePackageOnBuild> <NoBuild>true</NoBuild> <IncludeBuildOutput>false</IncludeBuildOutput> <NuspecFile>$(SolutionDir)\Client1\Client1.nuspec</NuspecFile> </PropertyGroup> 这是我的nuspec文件: <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> <metadata> <id>Client1</id> <version>1.2.53</version> <title>Client1</title> <description>Desc</description> <authors>mz</authors> <owners>me</owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <releaseNotes>notes</releaseNotes> <copyright></copyright> <tags></tags> <dependencies> <dependency id="Microsoft.AspNetCore.Components.Web" version="8.0.0" /> <dependency id="NuGet.Build.Tasks.Pack" version="6.8.0" /> <dependency id="Microsoft.AspNetCore.Components.WebAssembly" version="8.0.0" /> <dependency id="Microsoft.AspNetCore.Components.WebAssembly.DevServer" version="8.0.0" /> <dependency id="MudBlazor" version="6.12.0" /> </dependencies> <summary></summary> <contentFiles> <files include="wwwroot/css/*.css" buildAction="Content" copyToOutput="true" flatten="true" /> </contentFiles> </metadata> <files> <file src="wwwroot\css\*.css" target="content\css" /> <file src="bin\Release\net8.0\Client1.dll" target="lib\net8.0" /> </files> </package> 这是我在目标项目上安装软件包时 project.assets.json 文件的一部分: "libraries": { "Client1/1.2.53": { "sha512": "kYwkGQ4Ea5/UXFy8yi15FanZ5dv1n5FV8mj7SXxo5fID+0VAoHLMQ1ig+ePOWYXWJqLCYAxylBaz9KjgPCubXw==", "type": "package", "path": "client1/1.2.53", "files": [ ".nupkg.metadata", "client1.1.2.53.nupkg.sha512", "client1.nuspec", "content/css/app.css", "lib/net8.0/Client1.dll" ] }, 但是有了这些,https://localhost:nnnn/content/css/app.css出现了404错误,如何解决这个问题? 它们实际上并不存在于项目目录中。相反,它们在构建过程中从 NuGet 包中提取并包含在输出目录中。

回答 1 投票 0

Nuget 问题检测到软件包降级:Microsoft.Maui.Controls 从 8.0.6 到 8.0.3

我已经很长一段时间没有遇到 nuget 问题了(VS2010),但在过去的 1/2 年里我又再次与这些问题作斗争。这一次,我似乎过不了了。 这是一个针对 .ne 的 .net maui 程序...

回答 1 投票 0

第二个 Nuget 的构建目标未执行

我为我的两个 WebAssembly 项目 Client1 和 Client2 创建了两个 nuget 包,并为每个包添加了一个构建目标,以从该客户端检索 css 文件并将它们复制到主项目,而

回答 0 投票 0

具有 NuGet 依赖项的参考 DLL

假设我构建了一个名为 B 的项目 B.dll。项目 B 使用多个 NuGet 包。 B.dll在另一个项目A中被引用,如何自动将引用的NuGet依赖添加到项目中...

回答 1 投票 0

从 Blazor WebAssembly 创建了一个 Nuget 包,但内容文件错误 404,在使用它的项目中

我从我的 WebAssembly 项目创建了一个 Nuget 包,安装后运行良好,但对于其内容文件来说,这是 .nuspec 文件: 我从我的 WebAssembly 项目创建了一个 Nuget 包,安装后运行良好,但对于其内容文件来说,这是 .nuspec 文件: <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> <metadata> <id>Client1Package</id> <version>1.2.16</version> <title>Client1</title> <description>Desc</description> <authors>mz</authors> <owners>me</owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <releaseNotes>notes</releaseNotes> <copyright></copyright> <tags></tags> <dependencies> <dependency id="Microsoft.AspNetCore.Components.Web" version="8.0.0" /> <dependency id="NuGet.Build.Tasks.Pack" version="6.8.0" /> <dependency id="Microsoft.AspNetCore.Components.WebAssembly" version="8.0.0" /> <dependency id="Microsoft.AspNetCore.Components.WebAssembly.DevServer" version="8.0.0" /> <dependency id="MudBlazor" version="6.12.0" /> </dependencies> <summary></summary> <contentFiles> <files include="wwwroot/css/*.css" buildAction="None" copyToOutput="true" /> </contentFiles> </metadata> <files> <file src="bin\Release\net8.0\Client1.dll" target="lib\net8.0" /> <file src="wwwroot\css\*.css" target="content\css" /> <!-- this also is not working in the main project <link href="content/css/app.css" rel="stylesheet" /> --> </files> </package> 我需要 wwwroo 中的 app.css

回答 0 投票 0

Nuget 包 - feed (VSTS):尝试添加源时抛出异常“System.AggregateException”

我在包发布中心 (VSTS) 创建了一个新的源,安装了凭据,然后添加了包源。 现在,我正在使用 Visual Studio 2015 将 Micrososft.Aspnet.mvc 安装到项目...

回答 14 投票 0

如何在没有 Visual Studio 的情况下安装 Nuget 包?

我一直在尝试安装Nuget Package,因为由于某些原因我不使用Visual Studio,所以我需要在没有Visual Studio的情况下安装它。 有什么办法吗? 请帮帮我。

回答 2 投票 0

更新依赖包Microsoft.Data.SqlClient

Microsoft.Data.SqlClient 中存在漏洞,nuget 包 Microsoft.EntityFrameworkCore.SqlServer 使用此包的易受攻击版本。 即使是最新版本也使用微软......

回答 1 投票 0

如何打包面向 .NET Framework 和通用 Windows 平台的 .NET 库并包含特定于平台的功能?

如何以现代通用方式打包具有以下属性的 .NET 库? 为 .NET Framework 4.6 和通用 Windows 平台提供一些共享功能。 优惠...

回答 2 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.