Visual Studio始终使用Paket重建解决方案

问题描述 投票:0回答:1

我非常有兴趣在Visual Studio中使用Paket而不是Nuget作为我的包。

到目前为止,这也很好。但问题是,Visual Studio始终认为每个项目的app.config都已更改。但是在我的Git工具中查看我的更改没有任何变化。即使我在运行之前直接构建我的单元测试。

你有什么建议吗?

我的paket.dependencies看起来像这样:

// Only the target frameworks that are used in projects.
framework: net461
content: none

source https://api.nuget.org/v3/index.json
source http://myownnugetrepo.com/nexus/

nuget SharpZipLib 0.86.0
nuget Autofac.WebApi2.Owin
nuget My.Own.Package redirects: on
nuget EasyNetQ.DI.Autofac
nuget EFInteractiveViews
nuget ExcelDataReader.DataSet
nuget FluentAssertions
nuget Microsoft.AspNet.WebApi.OwinSelfHost 
nuget Microsoft.CSharp
nuget Microsoft.Diagnostics.Tracing.EventSource
nuget Microsoft.Graph
nuget Microsoft.Identity.Client
nuget Microsoft.IdentityModel.Clients.ActiveDirectory 
nuget Microsoft.VisualStudio.SlowCheetah
nuget NSubstitute
nuget NUnit
nuget Oracle.ManagedDataAccess.EntityFramework
nuget RestSharp.Newtonsoft.Json.Extensions 
nuget Serilog.Sinks.Async
nuget Serilog.Sinks.Console
nuget Serilog.Sinks.RollingFile
nuget Swashbuckle
nuget Topshelf.Serilog

Visual Studio所说的内容(如果使用诊断模式构建):

项目'My.Project'不是最新的。在输出文件''之后修改输入文件'C:\ Projects \ My.Project \ src \ My.Project.Interface \ app.config'。

c# visual-studio paket
1个回答
0
投票

好,我知道了。在睡觉之后我找到了一个Paket命令来做到这一点:

paket auto-restore on

这解决了我的问题。我认为它是通过将项目从nuget转换为paket自动完成的,但事实并非如此。现在它有效。

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