![](/img/trans.png)
[英]meaning of Installed and Version columns in Nuget manage for solution
Visual Studio 中 package 管理器中的“版本”和“已安裝”有什么區別? 有時“版本”是空白的,我無法辨別原因。 ...
[英]meaning of Installed and Version columns in Nuget manage for solution
Visual Studio 中 package 管理器中的“版本”和“已安裝”有什么區別? 有時“版本”是空白的,我無法辨別原因。 ...
[英]Why might Visual Studio be unable to authenticate to an Azure artifact package source?
我的公司 nuget 提要無法通過 Visual Studio 2022 中的 package 管理器界面訪問。 我的公司有一個 nuget 源和一個 url 像https://elcia.pkgs.visualstudio.com/_packaging/MYCOMPANY/nuget/v3/in ...
[英]How to change SpecificVersion to false for NuGet packages?
對於內部使用的 NuGet 包,我想將SpecificVersion更改為false 。 我使用的是PackageReference而不是packages.config ,如果有區別的話。 在搜索該主題的解決方案時,我發現了這些結果 GitHub Nuget: https://github.com ...
[英]nuget command Source Add started to fail out of nowhere with a warning asking for a unique source
我有一個 c# wpf 應用程序和一個額外的安裝程序項目來創建應用程序的安裝程序。 在許多其他文件中,安裝程序項目有一個 installer.cmd 文件(我從別人那里接手的)和一個 Product.wxs 文件。 我能夠通過在 developper 命令提示符下運行msbuild tools\in ...
[英]Pushing nuget symbol packages to Artifactory removes ".symbols." from the package name and overwrites the regular package
我正在使用 do.net nuget push 將 Nuget 包 ( .nupkg ) 及其關聯的符號包 ( .symbols.nupkg ) do.net nuget push送到 Artifactory。 但是,在我嘗試過的所有方法中,package 名稱的.symbols部分都被刪除,原始 ...
[英]Same solution on different machines producing different Nuget package output
我需要幫助。 我的項目最近已從 .NET Framework 4.8 遷移到 .NET 6。我們提升並編譯了所有內容,包括從 packages.config 遷移到 PackageReference。 這個項目有點獨特,因為它有: 一個面向外的 Git 存儲庫,可以連接到 inte.net 離線的 ...
[英]how can i update all my nuget dependencies at once using command line?
我的項目有 400 多個依賴項,我必須使用 .NET 7.0 中的命令一次更新所有這些依賴項。 我已經嘗試過 nukeeper、do.net-outdated-tool 和 NuPu。 nukeeper 和 do.net-outdated 已被棄用,Nupu 用於同時更新依賴項(一個接一個)。 ...
[英]How to address (suspected) outdated external package dependencies?
我們有一個 .Net Core 6.0 解決方案,其中兩個項目將 NuGet package 引用設置為Azure.Storage.Blobs 12.14.1 (撰寫本文時的最新版本): 今天,IT 正在測試的一種新的安全掃描工具標記了一個“關鍵”問題: System.Text.Encoding ...
[英]How to use Nuget.VisualStudio.IVsPackageInstaller?
我到處都在尋找,但沒有任何效果,也不夠完整,無法使用。 我想從自定義模板動態安裝包。 我已經使用了 vsTemplate 文件的元素,但我希望能夠使用 NuGet API 來更動態地完成它。 這是我的設置,現在必須保持這種狀態。 Visual Studio 2019 企業版環境 DTE (8.0 ...
[英]How to create an installer for an application that uses 'Martincostello.Sqllocaldb', without having reference problems?
我嘗試使用“https://github.com/martincostello/sqllocaldb”處理 SQLLocalDB,它工作正常,但是當我嘗試 package 應用程序將其安裝在另一台機器上時,這是不可能的,即使使用 Visual Studio 2017-2019 安裝程序,也不使用 ...
[英]NuGet Package can't find and use it's own DLL's
賞金將在 6 天后到期。 此問題的答案有資格獲得+50聲望賞金。 Savonarolla想讓更多人關注這個問題: 拜托,我需要解決這個問題:( 我在將一個項目的 package 與其他項目作為參考時遇到問題。 簡而言之……我們有一個網絡。 具有洋蔥架構的核心 WebAPI。 這些層作為參考項目實 ...
[英]What's the difference between ./nuget.exe pack ./PartsUnlimited.Shared.csproj vs nuget pack ./PartsUnlimited.Shared.csproj on mac?
我正在關注 windows 上為 visual studio 設計的實驗室,在 visual studio for mac 上。 實驗室說明是./nuget.exe pack./PartsUnlimited.Shared.csproj但它不構建任何東西,只是將我的查找器彈出到 .csproj 所在 ...
[英]How do I include JsonOptions in WebAssemblyHostBuilder on a Blazor .NET 6 web app?
我正在使用 .NET 6 並擁有一個 UI 和 API,它使用新的 DateOnly 類型。 按照這篇文章的回答: System.NotSupportedException:不支持“System.DateOnly”實例的序列化和反序列化我在我的 Program.cs class 中的 API 上 ...
[英]How to get types which implements specific interface from referenced NuGet packages?
我試圖找到一種方法來獲取所有實現某些接口的類,其中這些類的位置在引用的 NuGet 包中。 我知道如何使用Assembly.GetReferencedAssemblies來處理引用的 dll 文件。 但是我怎樣才能探索 NuGet 個包呢? 有一些 nuget 可以幫助完成這項任務嗎? 我試圖查看 ...
[英]How can I change the user path for .NET?
在 OSX 設置中更改我的用戶名和用戶路徑(例如 /Users/)后,當我嘗試使用do.net命令安裝 package 時,如do.net new --install CelesteMod.Templates我收到以下錯誤: ...
[英]Azure Pipeline 1 solution with multiple projects and separate versions
我設置了一個 azure 管道來構建一個 .net 框架 class 庫。 當前設置是解決方案中的 1 個解決方案和 1 個項目,一切正常。 我使用Assembly Info Reader擴展來讀取用於版本控制的AssemblyInfo.cs 。 這工作正常,完全符合預期。 我想要實現的是將第二個項 ...
[英]How to use nuget library SimpleHelpers.FileEncoding on c# on VScode
do.net add package SimpleHelpers.FileEncoding SimpleHelpers.FileEncoding do.net run 表明: C:\Users\user\Downloads\c2\Program.cs(1,7): 錯誤 CS0246: 找不到類 ...
[英]Azure Pipelines populate NuGet package fields
我有一個使用 .net 框架 4.6.1 的 Class 庫項目,我正在使用 Azure 管道構建一個 NuGet package。 我已經填充了 NuGet package 屬性中的大部分字段,但是我正在努力解決一些問題。 我正在使用擴展從 AssemblyInfo.cs 讀取AssemblyIn ...
[英]How to apply EF Core DB schema from a shared class library NuGet package
假設我有一個 class,它擴展了共享庫中定義的 DBContext(為簡單起見,在此稱為 DBContext),加上一個擴展方法來簡化將此 DBContext 添加到依賴項注入(給定一個配置變量,它將生成一個連接字符串到數據庫)。 我 go 如何應用數據庫架構? 來自共享庫? 來自使用該庫的二進 ...
[英].NET 7 dependencies and nuget packages managing
我在 Visual Studio 2022 中啟動了一個新的 .NET 7 項目。我使用的模板是“ASP.NET Core WebAPI”。 該項目在解決方案資源管理器中看起來像這樣: 我可以看到文件夾“C:\Program Files\do.net\packs\Microsoft.AspNetC ...