Skip to content

Commit 0089b7f

Browse files
committed
Setting version to 1.7.1 release. Updating Help and Readme.
1 parent 4057f3c commit 0089b7f

17 files changed

+39
-30
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ What is this [**dependency control**](doc/DependencyControl.md) anyway?
1010

1111
## Getting Started
1212

13-
1. Add the **NsDepCop NuGet package** to your C# projects.
14-
* Latest version, supports C# 7 language features: [![NuGet Package](https://img.shields.io/nuget/v/NsDepCop.svg)](https://nuget.org/packages/NsDepCop)
15-
* If you don't need C# 7 support then use the previous version which is faster: [![NuGet Package 1.6.1](https://img.shields.io/badge/nuget-1.6.1-blue.svg)](https://nuget.org/packages/NsDepCop/1.6.1)
13+
1. Add the **NsDepCop NuGet package** to your C# projects: [![NuGet Package](https://img.shields.io/nuget/v/NsDepCop.svg)](https://nuget.org/packages/NsDepCop)
14+
* If you have v1.7.0 then you should update to v1.7.1 because that's much faster.
1615
1. A file called **config.nsdepcop** is automatically added to your project. Edit it and describe [**dependency rules**](doc/Help.md#dependency-rules).
1716
* If your project doesn't use the packages.config package manager format then you'll have to [add config.nsdepcop manually](doc/Troubleshooting.md#item4).
1817
1. When you **build** the project, dependency violations will be reported in the build output just like compiler errors/warnings.

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ image: Visual Studio 2017
22

33
environment:
44
shortversion: '1.7.1'
5-
informationalversion: '1.7.1-rc3'
5+
informationalversion: '1.7.1'
66

77
version: '$(shortversion).{build}'
88

doc/Help.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* [Controlling verbosity](#controlling-verbosity)
66
* [Config XML schema](#config-xml-schema)
77
* [Config XML schema support in Visual Studio](#config-xml-schema-support-in-visual-studio)
8-
* [Machine-wide MSBuild integration](#machine-wide-msbuild-integration)
8+
* [NsDepCop ServiceHost](#nsdepcop-servicehost)
9+
* [Machine-wide MSBuild integration (Deprecated)](#machine-wide-msbuild-integration)
910

1011

1112
## Dependency rules
@@ -195,10 +196,21 @@ Add NsDepCop config XML schema to the Visual Studio schema cache to get validati
195196
* [NsDepCopCatalog.xml](../source/NsDepCop.ConfigSchema/NsDepCopCatalog.xml)
196197
* [NsDepCopConfig.xsd](../source/NsDepCop.ConfigSchema/NsDepCopConfig.xsd)
197198

198-
## Machine-wide MSBuild integration
199+
## NsDepCop ServiceHost
200+
NsDepCop NuGet package **v1.7.1** have introduced the NsDepCop ServiceHost to improve build performance.
201+
* It runs in the background as a standalone process, communicates via named pipes and serves requests coming from NsDepCopTask instances running inside MSBuild processes.
202+
* It is started automatically when needed by an NsDepCopTask and quits automatically when the MSBuild process that started it exits.
203+
* By running continuously it avoids the repeated startup times which is significant.
204+
205+
You can control the lifetime of NsDepCop ServiceHost by controlling the lifetime of the MSBuild processes by modifying the **MSBUILDDISABLENODEREUSE** environment variable.
206+
* If you set it to 0 then new MSBuild processes are started for each build and they exit when the build finishes. So do NsDepCop ServiceHost.
207+
* If you set it to **1** then MSBuild processes are kept alive until the Visual Studio instance that started them exits. **This option gives the best build (and NsDepCop) performance.**
208+
209+
## Machine-wide MSBuild integration (Deprecated)
199210
* This is a legacy option in the MSI installer and requires admin privilege.
200211
* Hooks into the MSBuild C# build process by modifying the "Custom.After.Microsoft.CSharp.targets" file. It does not modify any C# project files.
201212
* Runs NsDepCop when building any C# project that has a config.nsdepcop file.
213+
202214
* The drawback of this method is that you have to install the tool on every environment where you want to use it.
203215
* The NuGet (per-project MSBuild integration) approach is much better because that works in every environment with zero install: the tool gets pulled down by the nuget package restore.
204216

source/NsDepCop.Core/NsDepCop.Core.csproj

+3-5
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,15 @@
119119
<None Include="config.nsdepcop">
120120
<SubType>Designer</SubType>
121121
</None>
122-
<None Include="packages.config">
123-
<SubType>Designer</SubType>
124-
</None>
122+
<None Include="packages.config" />
125123
</ItemGroup>
126124
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
127-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
125+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
128126
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
129127
<PropertyGroup>
130128
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
131129
</PropertyGroup>
132-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
130+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
133131
</Target>
134132
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
135133
Other similar extension points exist, see Microsoft.Common.targets.

source/NsDepCop.Core/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
3+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
44
</packages>

source/NsDepCop.MsBuildTask/NsDepCop.MsBuildTask.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@
9292
<None Include="packages.config" />
9393
</ItemGroup>
9494
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
95-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
95+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
9696
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
9797
<PropertyGroup>
9898
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
9999
</PropertyGroup>
100-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
100+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
101101
</Target>
102102
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
103103
Other similar extension points exist, see Microsoft.Common.targets.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
3+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
44
</packages>

source/NsDepCop.ParserAdapter.Roslyn1x/NsDepCop.ParserAdapter.Roslyn1x.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
9090
</ItemGroup>
9191
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
92-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
92+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
9393
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
9494
<PropertyGroup>
9595
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
9696
</PropertyGroup>
97-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
97+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
9898
</Target>
9999
</Project>

source/NsDepCop.ParserAdapter.Roslyn1x/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net462" />
44
<package id="Microsoft.CodeAnalysis.Common" version="1.2.2" targetFramework="net462" />
55
<package id="Microsoft.CodeAnalysis.CSharp" version="1.2.2" targetFramework="net462" />
6-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
6+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
77
<package id="System.Collections" version="4.0.0" targetFramework="net462" />
88
<package id="System.Collections.Immutable" version="1.1.37" targetFramework="net462" />
99
<package id="System.Diagnostics.Debug" version="4.0.0" targetFramework="net462" />

source/NsDepCop.ParserAdapter.Roslyn2x/NsDepCop.ParserAdapter.Roslyn2x.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@
171171
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
172172
</ItemGroup>
173173
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
174-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
174+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
175175
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
176176
<PropertyGroup>
177177
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
178178
</PropertyGroup>
179-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
179+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
180180
</Target>
181181
</Project>

source/NsDepCop.ParserAdapter.Roslyn2x/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net462" />
44
<package id="Microsoft.CodeAnalysis.Common" version="2.0.0" targetFramework="net462" />
55
<package id="Microsoft.CodeAnalysis.CSharp" version="2.0.0" targetFramework="net462" />
6-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
6+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
77
<package id="System.AppContext" version="4.3.0" targetFramework="net462" />
88
<package id="System.Collections" version="4.3.0" targetFramework="net462" />
99
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net462" />

source/NsDepCop.ServiceHost/NsDepCop.ServiceHost.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@
159159
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
160160
</ItemGroup>
161161
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
162-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
162+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
163163
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
164164
<PropertyGroup>
165165
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
166166
</PropertyGroup>
167-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
167+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
168168
</Target>
169169
</Project>

source/NsDepCop.ServiceHost/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net462" />
44
<package id="Microsoft.CodeAnalysis.Common" version="2.2.0" targetFramework="net462" />
55
<package id="Microsoft.CodeAnalysis.CSharp" version="2.2.0" targetFramework="net462" />
6-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
6+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
77
<package id="System.AppContext" version="4.3.0" targetFramework="net462" />
88
<package id="System.Collections" version="4.3.0" targetFramework="net462" />
99
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net462" />

source/NsDepCop.VisualStudioIntegration.Vs2015/NsDepCop.VisualStudioIntegration.Vs2015.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@
288288
</PropertyGroup>
289289
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.props'))" />
290290
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets'))" />
291-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
291+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
292292
</Target>
293293
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.14.3.25420\build\Microsoft.VSSDK.BuildTools.targets')" />
294-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
294+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
295295
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
296296
Other similar extension points exist, see Microsoft.Common.targets.
297297
<Target Name="BeforeBuild">

source/NsDepCop.VisualStudioIntegration.Vs2015/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<package id="Microsoft.VisualStudio.Utilities" version="14.3.25407" targetFramework="net462" />
2828
<package id="Microsoft.VisualStudio.Validation" version="14.1.111" targetFramework="net462" />
2929
<package id="Microsoft.VSSDK.BuildTools" version="14.3.25420" targetFramework="net462" developmentDependency="true" />
30-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
30+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
3131
<package id="System.AppContext" version="4.1.0" targetFramework="net462" />
3232
<package id="System.Collections" version="4.0.11" targetFramework="net462" />
3333
<package id="System.Collections.Concurrent" version="4.0.12" targetFramework="net462" />

source/NsDepCop.VisualStudioIntegration.Vs2017/NsDepCop.VisualStudioIntegration.Vs2017.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@
347347
</PropertyGroup>
348348
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.props'))" />
349349
<Error Condition="!Exists('..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets'))" />
350-
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets'))" />
350+
<Error Condition="!Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets'))" />
351351
</Target>
352352
<Import Project="..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets')" />
353-
<Import Project="..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc1\build\NsDepCop.targets')" />
353+
<Import Project="..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets" Condition="Exists('..\packages\NsDepCop.1.7.1-rc3\build\NsDepCop.targets')" />
354354
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
355355
Other similar extension points exist, see Microsoft.Common.targets.
356356
<Target Name="BeforeBuild">

source/NsDepCop.VisualStudioIntegration.Vs2017/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<package id="Microsoft.VisualStudio.Utilities" version="15.0.26201" targetFramework="net462" />
2828
<package id="Microsoft.VisualStudio.Validation" version="15.0.82" targetFramework="net462" />
2929
<package id="Microsoft.VSSDK.BuildTools" version="15.0.26201" targetFramework="net462" developmentDependency="true" />
30-
<package id="NsDepCop" version="1.7.1-rc1" targetFramework="net462" developmentDependency="true" />
30+
<package id="NsDepCop" version="1.7.1-rc3" targetFramework="net462" developmentDependency="true" />
3131
<package id="System.AppContext" version="4.3.0" targetFramework="net462" />
3232
<package id="System.Collections" version="4.3.0" targetFramework="net462" />
3333
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net462" />

0 commit comments

Comments
 (0)