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

时间:2018-09-07 09:54:52

标签: c# visual-studio paket

我对在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'。

1 个答案:

答案 0 :(得分:0)

好吧,我明白了。睡了之后,我发现了一个Paket命令来执行此操作:

paket auto-restore on

这解决了我的问题。我认为这是通过将Project从nuget转换为paket来自动完成的,但事实并非如此。现在可以了。