зеркало из
1
0
Форкнуть 0

Added nuget folder and nuspec files, and ruleset file for code analysis

This commit is contained in:
Terje Sandstrom 2013-08-19 09:15:31 +02:00
Родитель b925564088
Коммит 554b5a58b7
4 изменённых файлов: 86 добавлений и 0 удалений

13
Osiris.Extended.ruleset Normal file
Просмотреть файл

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Osiris.Extended" ToolsVersion="11.0">
<Include Path="basiccorrectnessrules.ruleset" Action="Default" />
<Include Path="basicdesignguidelinerules.ruleset" Action="Default" />
<Include Path="extendeddesignguidelinerules.ruleset" Action="Default" />
<Include Path="globalizationrules.ruleset" Action="Default" />
<Include Path="minimumrecommendedrules.ruleset" Action="Default" />
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA1062" Action="None" />
<Rule Id="CA1704" Action="None" />
<Rule Id="CA1709" Action="None" />
</Rules>
</RuleSet>

Просмотреть файл

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>NUnitTestAdapter</id>
<version>0.96.0</version>
<title>NUnit Test Adapter for VS2012 and VS2013</title>
<authors>NUnit Software</authors>
<owners>NUnit Software</owners>
<licenseUrl>http://visualstudiogallery.msdn.microsoft.com/site/6ab922d0-21c0-4f06-ab5f-4ecd1fe7175d/eula?licenseType=None</licenseUrl>
<projectUrl>http://nunit.org/index.php?p=vsTestAdapter&amp;r=2.6</projectUrl>
<iconUrl>http://nunit.org/nuget/nunit_32x32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A package including the NUnit TestAdapter for Visual Studio 2012/13. With this package you don't need to install the VSIX adapter package, and you don't need to upload the adapter to your TFS server.
Note that this package ONLY contains the adapter, not the NUnit framework. You must also get the framework, or use the NUnitTestAdapter.WithFramework nuget package.
You only need one such package for a solution.
The package works with Visual Studio 2012 from RTM, and with Update 1 and higher, and with Visual Studio 2013 Preview.</description>
<releaseNotes>Updated to work with VS 2013 preview.
Includes fix to profiling tests, bug 1189268</releaseNotes>
<copyright>NUnit Software</copyright>
<language>en-US</language>
<tags>test visualstudio testadapter</tags>
</metadata>
<files>
<file src="lib\nunit.core.dll" target="lib\nunit.core.dll" />
<file src="lib\nunit.core.interfaces.dll" target="lib\nunit.core.interfaces.dll" />
<file src="lib\nunit.util.dll" target="lib\nunit.util.dll" />
<file src="lib\NUnit.VisualStudio.TestAdapter.dll" target="lib\NUnit.VisualStudio.TestAdapter.dll" />
<file src="tools\install.ps1" target="tools\install.ps1" />
</files>
</package>

Просмотреть файл

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>NUnitTestAdapter.WithFramework</id>
<version>0.96.0</version>
<title>NUnit TestAdapter including NUnit 2.6.2 framework</title>
<authors>NUnit Software</authors>
<owners>NUnit Software</owners>
<licenseUrl>http://visualstudiogallery.msdn.microsoft.com/site/6ab922d0-21c0-4f06-ab5f-4ecd1fe7175d/eula?licenseType=None</licenseUrl>
<projectUrl>http://nunit.org/index.php?p=vsTestAdapter&amp;r=2.6</projectUrl>
<iconUrl>http://nunit.org/nuget/nunit_32x32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A package including the NUnit test frameworks and the Visual Studio 2012/13 test adapter. With this package you don't need to install the VSIX adapter package, and you don't need to upload the adapter to your TFS server.
Note that this package also contains the NUnit framework.
The package works with Visual Studio 2012 from RTM, and with Update 1 and higher, and with Visual Studio 2013 Preview.</description>
<releaseNotes>Updated to work with VS 2013 preview.
Includes fix to profiling tests, bug 1189268</releaseNotes>
<copyright>NUnit Software</copyright>
<language>en-US</language>
<tags>test visualstudio testadapter</tags>
</metadata>
<files>
<file src="lib\nunit.core.dll" target="lib\nunit.core.dll" />
<file src="lib\nunit.core.interfaces.dll" target="lib\nunit.core.interfaces.dll" />
<file src="lib\nunit.framework.dll" target="lib\nunit.framework.dll" />
<file src="lib\nunit.framework.xml" target="lib\nunit.framework.xml" />
<file src="lib\nunit.util.dll" target="lib\nunit.util.dll" />
<file src="lib\NUnit.VisualStudio.TestAdapter.dll" target="lib\NUnit.VisualStudio.TestAdapter.dll" />
<file src="tools\install.ps1" target="tools\install.ps1" />
</files>
</package>

12
nuget/install.ps1 Normal file
Просмотреть файл

@ -0,0 +1,12 @@
param($installPath, $toolsPath, $package, $project)
$asms = $package.AssemblyReferences | %{$_.Name}
foreach ($reference in $project.Object.References)
{
if ($asms -contains $reference.Name + ".dll")
{
if ($reference.Name -ne "nunit.framework")
{
$reference.CopyLocal = $false;
}
}
}