зеркало из
1
0
Форкнуть 0
This commit is contained in:
Chris Maddock 2016-08-02 14:04:52 +01:00
Коммит d0e7721a8e
29 изменённых файлов: 1915 добавлений и 0 удалений

13
.gitattributes поставляемый Normal file
Просмотреть файл

@ -0,0 +1,13 @@
# Normalize line endings
* text=auto
# Prevent files from being exported
.gitattributes export-ignore
.gitignore export-ignore
# Resharper DotSettings files are in Unix Format
*.DotSettings text eol=lf
# Monodevelop on Linux uses CRLF for these files
*.sln text eol=crlf
packages/repositories.config text eol=crlf

169
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,169 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/
.vs/
tools/Cake
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
*.ncrunch*
.*crunch*.local.xml
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.Publish.xml
# NuGet Packages Directory
packages/
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
App_Data/*.mdf
App_Data/*.ldf
#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
# =========================
# Windows detritus
# =========================
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Mac desktop service store files
.DS_Store
# =========================
# NUnit Specific
# =========================
distribution/
image/
packages/
tools/*
!tools/packages.config
nunit/bin
nunit/obj

31
BUILDING.md Normal file
Просмотреть файл

@ -0,0 +1,31 @@
## Building the MSI Installer
To retrieve the latest assemblies, and build the installer, a **Cake** (http://cakebuild.net) script is provided.
Normally build.cake is not invoked directly but through build.ps1.
These scripts are provided by the Cake project and ensure that Cake is properly installed before trying to run the cake script.
This helps the build to work on CI servers using newly created agents to run the build. We generally run it the same way on our own machines.
The build.cmd script is provided as an easy way to run build.ps1, from the command line.
In addition to passing the arguments through to build.cake, it can supply added arguments
through the CAKE_ARGS environment variable. The rest of this document will assume use of this script.
There is one case in which use of the CAKE_ARGS environment variable will be essential, if not necessary.
If you are running builds on a 32-bit Windows system, you must always supply the -Experimental argument
to the build. Use set CAKE_ARGS=-Experimental to ensure this is always done and avoid having to type
it out each time.
Key arguments to build.cmd / build:
* -Target, -t <task> The task to run - see below.
* -Configuration, -c [Release|Debug] The configuration to use (default is Release).
* -Experimental, -e Use the experimental build of Roslyn.
* -version Pass required version of the installer to build. A default value is specified in the Cake script.
The build.cake script contains a number of interdependent tasks. The most
important top-level tasks to use are listed here:
```
* FetchPackages Retrieves the latest versions of the required assemblies, from the lates NuGet packages.
* CreateImage Extracts the assemblies from the NuGet packages, and adds other required files to an image directory.
* PackageMsi Builds the MSI.
```

8
README.md Normal file
Просмотреть файл

@ -0,0 +1,8 @@
nunit-distribution
==================
MSI installer which bundles multiple NUnit 3.X components for install.
##Building
NUnit uses Cake (http://cakebuild.net) to fetch the assemblies for install, and build the installer. Further information is in BUILDING.md.

5
appveyor.yml Normal file
Просмотреть файл

@ -0,0 +1,5 @@
build_script:
- ps: .\build.ps1 -Target "Appveyor"
artifacts:
- path: distribution\*.msi

102
build.cake Normal file
Просмотреть файл

@ -0,0 +1,102 @@
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var version = Argument("version", "3.5.0");
//////////////////////////////////////////////////////////////////////
// FILE PATHS
//////////////////////////////////////////////////////////////////////
var ROOT_DIR = Context.Environment.WorkingDirectory.FullPath + "/";
var WIX_PROJ = ROOT_DIR + "nunit/nunit.wixproj";
var RESOURCES_DIR = ROOT_DIR + "resources/";
var PACKAGES_DIR = ROOT_DIR + "packages/";
var DISTRIBUTION_DIR = ROOT_DIR + "distribution/";
var IMAGE_DIR = ROOT_DIR + "image/";
//////////////////////////////////////////////////////////////////////
// NUGET PACKAGES
//////////////////////////////////////////////////////////////////////
var NUGET_PACKAGES = new []
{
"NUnit.Engine",
"NUnit.ConsoleRunner",
"NUnit.Extension.VSProjectLoader",
"NUnit.Extension.NUnitProjectLoader",
"NUnit.Extension.NUnitV2Driver",
"NUnit.Extension.NUnitV2ResultWriter",
"NUnit.Extension.TeamCityEventListener"
};
//////////////////////////////////////////////////////////////////////
// TASK
//////////////////////////////////////////////////////////////////////
Task("FetchPackages")
.Does(() =>
{
CleanDirectory(PACKAGES_DIR);
var settings = new NuGetInstallSettings
{
OutputDirectory = PACKAGES_DIR
};
foreach(var package in NUGET_PACKAGES)
{
NuGetInstall(package, settings);
}
});
Task("CreateImage")
.IsDependentOn("FetchPackages")
.Does(() =>
{
CleanDirectory(IMAGE_DIR);
CopyDirectory(RESOURCES_DIR, IMAGE_DIR);
foreach(var directory in System.IO.Directory.GetDirectories(PACKAGES_DIR))
{
var lib = directory + "/lib";
var tools = directory + "/tools";
if (DirectoryExists(lib))
CopyDirectory(lib, IMAGE_DIR);
if (DirectoryExists(tools))
CopyDirectory(tools, IMAGE_DIR);
}
});
Task("PackageMsi")
.IsDependentOn("CreateImage")
.Does(() =>
{
MSBuild(WIX_PROJ, new MSBuildSettings()
.WithTarget("Rebuild")
.SetConfiguration(configuration)
.WithProperty("PackageVersion", version)
.WithProperty("DisplayVersion", version)
.WithProperty("OutDir", DISTRIBUTION_DIR)
.WithProperty("Image", IMAGE_DIR)
.SetMSBuildPlatform(MSBuildPlatform.x86)
.SetNodeReuse(false)
);
});
Task("Appveyor")
.IsDependentOn("PackageMsi");
Task("Default")
.IsDependentOn("PackageMsi");
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
RunTarget(target);

2
build.cmd Normal file
Просмотреть файл

@ -0,0 +1,2 @@
@echo off
powershell ./build.ps1 %CAKE_ARGS% %*

55
build.ps1 Normal file
Просмотреть файл

@ -0,0 +1,55 @@
Param(
[string]$Script = "build.cake",
[string]$Target = "Default",
[ValidateSet("Release", "Debug")]
[string]$Configuration = "Release",
[ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")]
[string]$Verbosity = "Verbose",
[switch]$Experimental,
[switch]$WhatIf
)
$TOOLS_DIR = Join-Path $PSScriptRoot "tools"
$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe"
$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
# Should we use experimental build of Roslyn?
$UseExperimental = "";
if($Experimental.IsPresent) {
$UseExperimental = "-experimental"
}
# Is this a dry run?
$UseDryRun = "";
if($WhatIf.IsPresent) {
$UseDryRun = "-dryrun"
}
# Try download NuGet.exe if do not exist.
if (!(Test-Path $NUGET_EXE)) {
Invoke-WebRequest -Uri http://nuget.org/nuget.exe -OutFile $NUGET_EXE
}
# Make sure NuGet exists where we expect it.
if (!(Test-Path $NUGET_EXE)) {
Throw "Could not find NuGet.exe"
}
# Restore tools from NuGet.
Push-Location
Set-Location $TOOLS_DIR
Invoke-Expression "$NUGET_EXE install -ExcludeVersion"
Pop-Location
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
# Make sure that Cake has been installed.
if (!(Test-Path $CAKE_EXE)) {
Throw "Could not find Cake.exe"
}
# Start Cake
Invoke-Expression "$CAKE_EXE `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseDryRun $UseExperimental"
Write-Host
exit $LASTEXITCODE

Двоичные данные
common/banner.bmp Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 29 KiB

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

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Include>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="NUnit.org">
</Directory>
</Directory>
</Directory>
</Fragment>
</Include>

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

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Include>
<Feature Id="NUNIT.COMMON"
ConfigurableDirectory="INSTALLDIR"
Level="1"
Absent="disallow"
Title="NUnit Common"
Description="Installs common NUnit files." >
<ComponentGroupRef Id="NUNIT.COMMON"/>
</Feature>
</Include>

19
common/common-files.wxi Normal file
Просмотреть файл

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<Include>
<Fragment>
<ComponentGroup Id="NUNIT.COMMON" Directory="INSTALLDIR">
<Component Id="CHANGES.txt" Location="local" Guid="1FC58664-BC75-4EB5-B67C-B439B1870C63">
<File Id="CHANGES.txt" Source="$(var.InstallImage)\CHANGES.txt" />
</Component>
<Component Id="LICENSE.txt" Location="local" Guid="310C1DF5-BF3B-4758-B1BC-8B40D3F75E62">
<File Id="LICENSE.txt" Source="$(var.InstallImage)\LICENSE.txt" />
</Component>
<Component Id="NOTICES.txt" Location="local" Guid="0B4963E5-84B0-48B1-AE38-CFBB444CB6F3">
<File Id="NOTICES.txt" Source="$(var.InstallImage)\NOTICES.txt" />
</Component>
<Component Id="nunit.ico" Location="local" Guid="CF734A2C-C02E-470D-9248-E836760EBBDC">
<File Id="nunit.ico" Source="$(var.InstallImage)\nunit.ico" />
</Component>
</ComponentGroup>
</Fragment>
</Include>

Двоичные данные
common/dialog.bmp Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 152 KiB

53
common/variables.wxi Normal file
Просмотреть файл

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<Include>
<Condition Message="NUnit requires .NET 2.0, .NET 4.0 or Mono to be installed as a prerequisite.">
<![CDATA[Installed OR FRAMEWORK20 OR FRAMEWORK40 OR MONODIRECTORY]]>
</Condition>
<!-- ***************************************************************** -->
<!-- ********** Define Properties used in the install ********** -->
<!-- ***************************************************************** -->
<Property Id="FRAMEWORK20">
<RegistrySearch Id="Framework20Registry" Type="raw" Root="HKLM" Key="Software\Microsoft\.NETFramework\policy\v2.0" Name="50727" />
</Property>
<Property Id="FRAMEWORK40">
<RegistrySearch Id="Framework40Registry" Type="raw" Root="HKLM" Key="Software\Microsoft\.NETFramework\policy\v4.0" Name="30319" />
</Property>
<Property Id="MONODEFAULTCLR">
<RegistrySearch Id="MonoDefaultClr" Type="raw" Root="HKLM" Key="Software\Novell\Mono" Name="DefaultCLR" />
</Property>
<Property Id="MONODIRECTORY">
<RegistrySearch Id="MonoDirectory" Type="directory" Root="HKLM" Key="Software\Novell\Mono\[MONODEFAULTCLR]" Name="SDKInstallRoot" />
</Property>
<Property Id="CMD_EXE" Value="[!SystemFolder]cmd.exe" />
<!-- ***************************************************************** -->
<!-- ********* Properties for the Add Remove Programs list ********* -->
<!-- ***************************************************************** -->
<Icon Id="nunit.ico" SourceFile="$(var.InstallImage)\nunit.ico"/>
<Property Id="ARPCONTACT" Value="Charlie Poole" />
<Property Id="ARPPRODUCTICON" Value="nunit.ico" />
<Property Id="ARPHELPLINK" Value="https://groups.google.com/forum/#!forum/nunit-discuss" />
<Property Id="ARPURLINFOABOUT" Value="NUnit is a testing framework for all .NET languages" />
<Property Id="ARPURLUPDATEINFO" Value="http://nunit.org" />
<MediaTemplate EmbedCab="yes" />
<!-- ***************************************************************** -->
<!-- ********** Define our GUI using standard WiX UI ********** -->
<!-- ***************************************************************** -->
<WixVariable Id="WixUILicenseRtf" Value="$(var.InstallImage)\License.rtf" />
<UIRef Id="WixUI_Mondo" />
<UIRef Id="WixUI_ErrorProgressText" />
<WixVariable Id="WixUIBannerBmp" Value="..\common\banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="..\common\dialog.bmp" />
</Include>

22
nunit-install.sln Normal file
Просмотреть файл

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "nunit", "nunit\nunit.wixproj", "{809C00DC-3FD3-45BF-BC0E-E284F314D306}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{809C00DC-3FD3-45BF-BC0E-E284F314D306}.Debug|x86.ActiveCfg = Debug|x86
{809C00DC-3FD3-45BF-BC0E-E284F314D306}.Debug|x86.Build.0 = Debug|x86
{809C00DC-3FD3-45BF-BC0E-E284F314D306}.Release|x86.ActiveCfg = Release|x86
{809C00DC-3FD3-45BF-BC0E-E284F314D306}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

40
nunit/addin-files.wxi Normal file
Просмотреть файл

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<Fragment>
<ComponentGroup Id="ADDINS.NUNIT.PROJECT.LOADER" Directory="ADDINS">
<Component Id="ADDINS.NUNIT.PROJECT.LOADER" Location="local" Guid="294BEC17-144D-403B-A08C-E524BE8F3FA3">
<File Id="nunit_project_loader.dll"
Source="$(var.InstallImage)\nunit-project-loader.dll" />
</Component>
</ComponentGroup>
<ComponentGroup Id="ADDINS.VS.PROJECT.LOADER" Directory="ADDINS">
<Component Id="ADDINS.VS.PROJECT.LOADER" Location="local" Guid="98CB680E-EAFA-4DC6-A0C1-030734A4C949">
<File Id="vs_project_loader.dll"
Source="$(var.InstallImage)\vs-project-loader.dll" />
</Component>
</ComponentGroup>
<ComponentGroup Id="ADDINS.NUNIT.V2.WRITER" Directory="ADDINS">
<Component Id="ADDINS.NUNIT.V2.WRITER" Location="local" Guid="9CD93A4A-A499-4DC9-9E07-A95D9743D06F">
<File Id="nunit_v2_result_writer.dll"
Source="$(var.InstallImage)\nunit-v2-result-writer.dll" />
</Component>
</ComponentGroup>
<ComponentGroup Id="NUNIT.V2.DRIVER" Directory="ADDINS">
<Component Id="NUNIT.V2.DRIVER" Location="local" Guid="4A55D836-7719-40A2-BDFF-CE3980FE3B42">
<File Id="nunit.v2.driver.dll"
Source="$(var.InstallImage)\nunit.v2.driver.dll" />
</Component>
<Component Id="NUNIT.2.CORE" Location="local" Guid="3D13540C-83E0-463A-8FD1-BE2A3248E2EC">
<File Id="nunit.core.dll"
Source="$(var.InstallImage)\nunit.core.dll" />
</Component>
<Component Id="NUNIT.2.CORE.INTERFACES" Location="local" Guid="A09CA3D7-1D35-436C-A899-E1364B1E7AFD">
<File Id="nunit.core.interfaces.dll"
Source="$(var.InstallImage)\nunit.core.interfaces.dll" />
</Component>
</ComponentGroup>
</Fragment>
</Include>

14
nunit/console-files.wxi Normal file
Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<Fragment>
<ComponentGroup Id="NUNIT.CONSOLE" Directory="CONSOLE_BIN">
<Component Id="NUNIT_CONSOLE" Location="local" Guid="EEABEE65-D977-46B7-99B4-73814BF7BE63">
<File Id="nunit_console.exe"
ProcessorArchitecture="msil"
Source="$(var.InstallImage)\nunit3-console.exe" />
<File Id="nunit_console.exe.config"
Source="$(var.InstallImage)\nunit3-console.exe.config" />
</Component>
</ComponentGroup>
</Fragment>
</Include>

46
nunit/engine-files.wxi Normal file
Просмотреть файл

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<Fragment>
<ComponentGroup Id="NUNIT.ENGINE" Directory="CONSOLE_BIN">
<Component Id="NUNIT.ENGINE" Location="local" Guid="033DE5BC-4AC4-4F98-9E5D-E5F3221FCD46">
<File Id="nunit.engine.dll"
ProcessorArchitecture="msil"
Source="$(var.InstallImage)\nunit.engine.dll" />
</Component>
<Component Id="NUNIT.ENGINE.ADDINS" Location="local" Guid="AE849966-843E-43E7-B3B0-95CD5A12C2C4">
<File Id="nunit.engine.addins"
Source="$(var.InstallImage)\nunit.engine.addins" />
</Component>
<Component Id="NUNIT.ENGINE.API" Location="local" Guid="6986F077-DF9F-4B4B-A3F5-5915A118AFC4">
<File Id="nunit.engine.api.dll"
ProcessorArchitecture="msil"
Source="$(var.InstallImage)\nunit.engine.api.dll" />
<File Id="nunit.engine.api.xml"
Source="$(var.InstallImage)\nunit.engine.api.xml" />
</Component>
<Component Id="NUNIT_AGENT" Location="local" Guid="A43CEE53-AFE3-4421-8AF5-0FA529E2D93F">
<File Id="nunit_agent.exe"
ProcessorArchitecture="msil"
Source="$(var.InstallImage)\nunit-agent.exe" />
<File Id="nunit_agent.exe.config"
Source="$(var.InstallImage)\nunit-agent.exe.config" />
</Component>
<Component Id="NUNIT_AGENT_X86" Location="local" Guid="39468421-A203-469C-BE38-86EE4EC37A6E">
<File Id="nunit_agent_x86.exe"
ProcessorArchitecture="x86"
Source="$(var.InstallImage)\nunit-agent-x86.exe" />
<File Id="nunit_agent_x86.exe.config"
Source="$(var.InstallImage)\nunit-agent-x86.exe.config" />
</Component>
<Component Id="MONO.CECIL" Location="local" Guid="D4A15752-6685-3494-9346-F623175CEFFA">
<File Id="Mono.Cecil.dll"
Source="$(var.InstallImage)\Mono.Cecil.dll" />
</Component>
<Component Id="NUNIT.ENGINE.REGISTRY">
<RegistryKey Root="HKMU" Key="Software\NUnit.org\Engine" >
<RegistryValue Action="write" Type="string" Name="!(bind.FileVersion.nunit.engine.dll)" Value="[CONSOLE_BIN]nunit.engine.dll" />
</RegistryKey>
</Component>
</ComponentGroup>
</Fragment>
</Include>

58
nunit/nunit.wixproj Normal file
Просмотреть файл

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<Version Condition=" '$(Version)' == '' ">3.0</Version>
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<InstallImage Condition=" '$(Image)' == '' ">..\image</InstallImage>
<InstallImage Condition=" '$(Image)' != '' ">$(Image)</InstallImage>
<ProductVersion>3.9</ProductVersion>
<WixVariables>Build=$(Configuration)</WixVariables>
<SuppressIces>ICE61</SuppressIces>
<ProjectGuid>809C00DC-3FD3-45BF-BC0E-E284F314D306</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>NUnit.$(Version)</OutputName>
<OutputType>Package</OutputType>
<DefineSolutionProperties>false</DefineSolutionProperties>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<Name>nunit</Name>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DefineConstants>Debug;Version=$(Version);InstallImage=$(InstallImage)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DefineConstants>Version=$(Version);InstallImage=$(InstallImage)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="nunit.wxs" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
</ItemGroup>
<ItemGroup>
<Content Include="..\common\common-directories.wxi">
<Link>common-directories.wxi</Link>
</Content>
<Content Include="..\common\common-features.wxi">
<Link>common-features.wxi</Link>
</Content>
<Content Include="..\common\common-files.wxi">
<Link>common-files.wxi</Link>
</Content>
<Content Include="..\common\variables.wxi">
<Link>variables.wxi</Link>
</Content>
<Content Include="addin-files.wxi" />
<Content Include="console-files.wxi" />
<Content Include="engine-files.wxi" />
<Content Include="runner-directories.wxi" />
<Content Include="runner-features.wxi" />
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
</Project>

32
nunit/nunit.wxs Normal file
Просмотреть файл

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Name="NUnit $(var.Version)"
Language="1033"
Version="!(bind.FileVersion.nunit.engine.dll)"
Manufacturer="nunit.org"
UpgradeCode="ED9BC7BB-45EE-481A-9479-2753770EF704">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version is already installed; please uninstall it and re-run setup." AllowSameVersionUpgrades="yes" />
<!-- Include the information that is common to all installs -->
<?include ..\common\variables.wxi ?>
<!-- Features -->
<?include ..\common\common-features.wxi ?>
<?include runner-features.wxi ?>
</Product>
<!-- Directories -->
<?include ..\common\common-directories.wxi ?>
<?include runner-directories.wxi ?>
<!-- Components and files -->
<?include ..\common\common-files.wxi ?>
<?include addin-files.wxi ?>
<?include console-files.wxi ?>
<?include engine-files.wxi ?>
</Wix>

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

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="CONSOLE_BIN" Name="nunit-console">
<Directory Id="ADDINS" Name="addins" />
</Directory>
</DirectoryRef>
</Fragment>
</Include>

49
nunit/runner-features.wxi Normal file
Просмотреть файл

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<Feature Id="NUNIT.RUNNERS"
ConfigurableDirectory="INSTALLDIR"
Level="1"
Title="NUnit Runners"
Display="expand"
Description="Installs the NUnit engine and the console runner that allows you to run tests.">
<Feature Id="NUNIT.ENGINE"
Level="1"
Absent="disallow"
Title="NUnit Engine"
Description="Installs the NUnit engine">
<ComponentGroupRef Id="NUNIT.ENGINE" />
<Feature Id="ADDINS.NUNIT.PROJECT.LOADER"
Level="1"
Title="NUnit Project Loader"
Description="Allows you to load NUnit Project files">
<ComponentGroupRef Id="ADDINS.NUNIT.PROJECT.LOADER" />
</Feature>
<Feature Id="ADDINS.VS.PROJECT.LOADER"
Level="1"
Title="Visual Studio Project Loader"
Description="Allows you to load Visual Studio Solution and Project files">
<ComponentGroupRef Id="ADDINS.VS.PROJECT.LOADER" />
</Feature>
<Feature Id="NUNIT.V2.DRIVER"
Level="1"
Title="NUnit 2.x Driver"
Description="Allows you to run NUnit 2.x test suites">
<ComponentGroupRef Id="NUNIT.V2.DRIVER" />
</Feature>
<Feature Id="ADDINS.NUNIT.V2.WRITER"
Level="1"
Title="NUnit 2.x Result Writer"
Description="Allows you to write test results out in the NUnit 2.x format">
<ComponentGroupRef Id="ADDINS.NUNIT.V2.WRITER" />
</Feature>
</Feature>
<Feature Id="NUNIT.CONSOLE"
Level="1"
Title="NUnit Console"
Description="Installs the NUnit console runner">
<ComponentGroupRef Id="NUNIT.CONSOLE" />
</Feature>
</Feature>
</Include>

1126
resources/CHANGES.txt Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

20
resources/LICENSE.txt Normal file
Просмотреть файл

@ -0,0 +1,20 @@
Copyright (c) 2016 Charlie Poole
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

6
resources/License.rtf Normal file
Просмотреть файл

@ -0,0 +1,6 @@
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\b\f0\fs22 Copyright (c) 2016 Charlie Poole\b0\par
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\par
}

5
resources/NOTICES.txt Normal file
Просмотреть файл

@ -0,0 +1,5 @@
NUnit 3.0 is based on earlier versions of NUnit, with Portions
Copyright (c) 2002-2014 Charlie Poole or
Copyright (c) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or
Copyright (c) 2000-2002 Philip A. Craig

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

@ -0,0 +1,4 @@
addins/nunit.v2.driver.dll
addins/nunit-v2-result-writer.dll
addins/nunit-project-loader.dll
addins/vs-project-loader.dll

Двоичные данные
resources/nunit.ico Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 58 KiB

4
tools/packages.config Normal file
Просмотреть файл

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.15.2" />
</packages>