parent
59eb4e68ec
commit
16813327d1
|
@ -1,709 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<Enabled>true</Enabled>
|
||||
<ErrorCategory>Warning</ErrorCategory>
|
||||
<TODOEnabled>false</TODOEnabled>
|
||||
<TODOCategory>Task</TODOCategory>
|
||||
<RunOnBuild>true</RunOnBuild>
|
||||
<CancelBuildOnError>false</CancelBuildOnError>
|
||||
<JSLintOptions>
|
||||
<BoolOptions2>
|
||||
<item>
|
||||
<key>
|
||||
<string>adsafe</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>anon</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>asi</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>bitwise</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>bitwise.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>boss</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>browser</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>camelcase</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>cap</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>continue</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>couch</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>css</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>curly</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>debug</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>devel</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>dojo</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>eqeqeq</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>eqeq</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>eqnull</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>es5</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>esnext</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>evil</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>expr</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>forin</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>forin.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>fragment</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>funcscope</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>globalstrict</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>immed</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>iterator</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>jquery</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>lastsemic</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>latedef</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>laxbreak</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>laxcomma</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>loopfunc</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>mootools</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>multistr</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>newcap</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>newcap.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>noarg</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>node</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>noempty</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>nonew</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>nomen</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>nomen.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>nonstandard</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>on</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>onecase</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>onevar</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>passfail</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>plusplus</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>plusplus.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>proto</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>prototypejs</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>regexp</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>regexp.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>regexdash</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>rhino</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>safe</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>scripturl</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>shadow</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>sloppy</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>smarttabs</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>stupid</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>sub</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>supernew</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>strict</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>trailing</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>todo</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>undef</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>undef.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>unused</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>unparam</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>validthis</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>vars</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>white</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>true</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>white.</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>widget</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>windows</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>withstmt</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>worker</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>wsh</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
<item>
|
||||
<key>
|
||||
<string>yui</string>
|
||||
</key>
|
||||
<value>
|
||||
<boolean>false</boolean>
|
||||
</value>
|
||||
</item>
|
||||
</BoolOptions2>
|
||||
<ErrorOnUnused>false</ErrorOnUnused>
|
||||
<IndentSize xsi:nil="true" />
|
||||
<MaxLength>150</MaxLength>
|
||||
<MaxComplexity xsi:nil="true" />
|
||||
<MaxDepth xsi:nil="true" />
|
||||
<MaxStatements xsi:nil="true" />
|
||||
<MaxParams xsi:nil="true" />
|
||||
<QuoteMark>Single</QuoteMark>
|
||||
<SelectedLinter>JSHint</SelectedLinter>
|
||||
<FindTodos>false</FindTodos>
|
||||
<PreDefined>
|
||||
<string>NzbDrone</string>
|
||||
<string>Backbone</string>
|
||||
<string>_</string>
|
||||
<string>document</string>
|
||||
<string>window</string>
|
||||
</PreDefined>
|
||||
</JSLintOptions>
|
||||
<BuildFileTypes>JS</BuildFileTypes>
|
||||
<SaveFileTypes>JS</SaveFileTypes>
|
||||
<FakeCSSCharset>false</FakeCSSCharset>
|
||||
<IgnoreErrorStart>/*ignore jslint start*/</IgnoreErrorStart>
|
||||
<IgnoreErrorEnd>/*ignore jslint end*/</IgnoreErrorEnd>
|
||||
<IgnoreErrorLine>//ignore jslint</IgnoreErrorLine>
|
||||
<RunOnSave>true</RunOnSave>
|
||||
</Options>
|
@ -1,27 +0,0 @@
|
||||
using System.Data.Common;
|
||||
using System.Data.SqlServerCe;
|
||||
using System.IO;
|
||||
|
||||
namespace NzbDrone.SqlCe
|
||||
{
|
||||
public class SqlCeProxy
|
||||
{
|
||||
public SqlCeConnection EnsureDatabase(string connectionString)
|
||||
{
|
||||
var connection = new SqlCeConnection(connectionString);
|
||||
|
||||
if (!File.Exists(connection.Database))
|
||||
{
|
||||
var engine = new SqlCeEngine(connectionString);
|
||||
engine.CreateDatabase();
|
||||
}
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
public DbProviderFactory GetSqlCeProviderFactory()
|
||||
{
|
||||
return new SqlCeProviderFactory();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.SqlServer.Compact" version="4.0.8876.1" targetFramework="net40" />
|
||||
</packages>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<solution>
|
||||
<add key="disableSourceControlIntegration" value="true" />
|
||||
</solution>
|
||||
</configuration>
|
Binary file not shown.
@ -1,153 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
|
||||
|
||||
<!-- Enable the restore command to run before builds -->
|
||||
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
|
||||
|
||||
<!-- Property that enables building a package from a project -->
|
||||
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
|
||||
|
||||
<!-- Determines if package restore consent is required to restore packages -->
|
||||
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
|
||||
|
||||
<!-- Download NuGet.exe if it does not already exist -->
|
||||
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(PackageSources)' == '' ">
|
||||
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
|
||||
<!-- The official NuGet package source (https://nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
|
||||
<!--
|
||||
<PackageSource Include="https://nuget.org/api/v2/" />
|
||||
<PackageSource Include="https://my-nuget-source/nuget/" />
|
||||
-->
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
|
||||
<!-- Windows specific commands -->
|
||||
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
|
||||
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
|
||||
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
|
||||
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
|
||||
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
|
||||
<PackagesConfig>packages.config</PackagesConfig>
|
||||
<PackagesDir>$(SolutionDir)packages</PackagesDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- NuGet command -->
|
||||
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
|
||||
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
|
||||
|
||||
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
|
||||
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
|
||||
|
||||
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
|
||||
|
||||
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
|
||||
<!-- Commands -->
|
||||
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -o "$(PackagesDir)"</RestoreCommand>
|
||||
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
|
||||
|
||||
<!-- We need to ensure packages are restored prior to assembly resolve -->
|
||||
<ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
|
||||
RestorePackages;
|
||||
$(ResolveReferencesDependsOn);
|
||||
</ResolveReferencesDependsOn>
|
||||
|
||||
<!-- Make the build depend on restore packages -->
|
||||
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
|
||||
$(BuildDependsOn);
|
||||
BuildPackage;
|
||||
</BuildDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="CheckPrerequisites">
|
||||
<!-- Raise an error if we're unable to locate nuget.exe -->
|
||||
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
|
||||
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
|
||||
<!--
|
||||
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
|
||||
This effectively acts as a lock that makes sure that the download operation will only happen once and all
|
||||
parallel builds will have to wait for it to complete.
|
||||
-->
|
||||
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
|
||||
</Target>
|
||||
|
||||
<Target Name="_DownloadNuGet">
|
||||
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
|
||||
<Exec Command="$(RestoreCommand)"
|
||||
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
|
||||
|
||||
<Exec Command="$(RestoreCommand)"
|
||||
LogStandardErrorAsError="true"
|
||||
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
|
||||
<Exec Command="$(BuildCommand)"
|
||||
Condition=" '$(OS)' != 'Windows_NT' " />
|
||||
|
||||
<Exec Command="$(BuildCommand)"
|
||||
LogStandardErrorAsError="true"
|
||||
Condition=" '$(OS)' == 'Windows_NT' " />
|
||||
</Target>
|
||||
|
||||
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
|
||||
<ParameterGroup>
|
||||
<OutputFilename ParameterType="System.String" Required="true" />
|
||||
</ParameterGroup>
|
||||
<Task>
|
||||
<Reference Include="System.Core" />
|
||||
<Using Namespace="System" />
|
||||
<Using Namespace="System.IO" />
|
||||
<Using Namespace="System.Net" />
|
||||
<Using Namespace="Microsoft.Build.Framework" />
|
||||
<Using Namespace="Microsoft.Build.Utilities" />
|
||||
<Code Type="Fragment" Language="cs">
|
||||
<![CDATA[
|
||||
try {
|
||||
OutputFilename = Path.GetFullPath(OutputFilename);
|
||||
|
||||
Log.LogMessage("Downloading latest version of NuGet.exe...");
|
||||
WebClient webClient = new WebClient();
|
||||
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
Log.LogErrorFromException(ex);
|
||||
return false;
|
||||
}
|
||||
]]>
|
||||
</Code>
|
||||
</Task>
|
||||
</UsingTask>
|
||||
|
||||
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
|
||||
<ParameterGroup>
|
||||
<EnvKey ParameterType="System.String" Required="true" />
|
||||
<EnvValue ParameterType="System.String" Required="true" />
|
||||
</ParameterGroup>
|
||||
<Task>
|
||||
<Using Namespace="System" />
|
||||
<Code Type="Fragment" Language="cs">
|
||||
<![CDATA[
|
||||
try {
|
||||
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
|
||||
}
|
||||
catch {
|
||||
}
|
||||
]]>
|
||||
</Code>
|
||||
</Task>
|
||||
</UsingTask>
|
||||
</Project>
|
Binary file not shown.
@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<!--
|
||||
See http://nlog-project.org/wiki/Configuration_file
|
||||
for information on customizing logging rules and outputs.
|
||||
-->
|
||||
<targets>
|
||||
<!-- add your targets here -->
|
||||
|
||||
<!--
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}" />
|
||||
-->
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<!-- add your logging rules here -->
|
||||
|
||||
<!--
|
||||
<logger name="*" minlevel="Trace" writeTo="f" />
|
||||
-->
|
||||
</rules>
|
||||
</nlog>
|
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Ionic.Zip" publicKeyToken="edbe51ad942a3f5c" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.9.1.5" newVersion="1.9.1.5" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
@ -1,18 +0,0 @@
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
|
||||
<targets>
|
||||
<target name="consoleTarget" xsi:type="ColoredConsole" layout="${logger}: ${message}" />
|
||||
<target name="debugTarget" xsi:type="Debugger" layout="${logger}: ${message}" />
|
||||
<target name="udpTarget" xsi:type="Chainsaw" address="udp://127.0.0.1:20480"
|
||||
includeCallSite="true" includeSourceInfo="true" includeNLogData="true" includeNDC="true" includeMDC="true">
|
||||
<parameter name="exception" layout="${exception:format=ToString}" xsi:type="NLogViewerParameterInfo" />
|
||||
<parameter name="processname" layout="${processname}" xsi:type="NLogViewerParameterInfo" />
|
||||
<parameter name="stacktrace" layout="${stacktrace:topFrames=99}" xsi:type="NLogViewerParameterInfo" />
|
||||
<parameter name="ThreadName" layout="${threadname}" xsi:type="NLogViewerParameterInfo" />
|
||||
</target>
|
||||
</targets>
|
||||
<rules>
|
||||
<logger name="*" minlevel="Info" writeTo="consoleTarget"/>
|
||||
<logger name="*" minlevel="Trace" writeTo="debugTarget"/>
|
||||
<logger name="*" minlevel="Trace" writeTo="udpTarget"/>
|
||||
</rules>
|
||||
</nlog>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="mongocsharpdriver" version="1.7" targetFramework="net40" />
|
||||
<package id="NLog" version="2.0.0.2000" targetFramework="net40" />
|
||||
<package id="NLog.Config" version="2.0.0.2000" targetFramework="net40" />
|
||||
</packages>
|
Before Width: | Height: | Size: 57 KiB |
|
@ -1,27 +0,0 @@
|
||||
SET PACKAGEROOT=_rawPackage
|
||||
SET TARGET=%PACKAGEROOT%\NzbDrone
|
||||
SET COPY_FLAGS=/S /V /I /Y
|
||||
SET DELETE_FLAGS=/Q /F /S
|
||||
|
||||
rd %PACKAGEROOT% /S /Q
|
||||
del nzbdrone*.zip %DELETE_FLAGS%
|
||||
del _output\FluentValidation.resources.dll %DELETE_FLAGS%
|
||||
|
||||
echo ##teamcity[progressMessage 'Packaging release']
|
||||
|
||||
xcopy ServiceHelpers\ServiceInstall\bin\Release\*.exe %TARGET%\ %COPY_FLAGS%
|
||||
xcopy ServiceHelpers\ServiceUninstall\bin\Release\*.exe %TARGET%\ %COPY_FLAGS%
|
||||
|
||||
xcopy _output\*.* %TARGET%\ %COPY_FLAGS%
|
||||
xcopy NzbDrone.Update\bin\Release\*.* %TARGET%\NzbDrone.Update\ %COPY_FLAGS%
|
||||
|
||||
CD %PACKAGEROOT%
|
||||
|
||||
del *.xml %DELETE_FLAGS%
|
||||
del *.vshost.exe.* %DELETE_FLAGS%
|
||||
|
||||
..\Libraries\7zip\7za.exe a -tzip ..\NzbDrone.zip *
|
||||
|
||||
CD ..
|
||||
|
||||
echo ##teamcity[progressMessage 'Release packaged']
|
@ -1,6 +0,0 @@
|
||||
rd C:\inetpub\services /S /Q
|
||||
|
||||
xcopy C:\inetpub\services_stage\*.* C:\inetpub\services\ /E /V /I /Y /F /C /o
|
||||
xcopy C:\inetpub\services\web.production.config c:\inetpub\services\web.config /o /y
|
||||
|
||||
pause
|
@ -1,31 +0,0 @@
|
||||
SET TARGET=_rawPackage_service
|
||||
|
||||
rd %TARGET% /S /Q
|
||||
|
||||
xcopy NzbDrone.Services\NzbDrone.Services.Service\bin\*.* %TARGET%\bin\ /E /V /I /Y /F /O
|
||||
xcopy NzbDrone.Services\NzbDrone.Services.Service\Content\*.* %TARGET%\Content\ /E /V /I /Y /F /O
|
||||
xcopy NzbDrone.Services\NzbDrone.Services.Service\Scripts\*.* %TARGET%\Scripts\ /E /V /I /Y /F /O
|
||||
xcopy NzbDrone.Services\NzbDrone.Services.Service\Views\*.* %TARGET%\Views\ /E /V /I /Y /F /O
|
||||
xcopy NzbDrone.Services\NzbDrone.Services.Service\log.config %TARGET% /S /V /I /Y /F /O
|
||||
xcopy NzbDrone.Services\NzbDrone.Services.Service\Global.asax %TARGET% /S /V /I /Y /F /O
|
||||
xcopy service_deploy_production.bat %TARGET% /O /Y
|
||||
|
||||
Libraries\CTT\ctt.exe source:"NzbDrone.Services\NzbDrone.Services.Service\Web.config" transform:"NzbDrone.Services\NzbDrone.Services.Service\Web.Stage.config" destination:"%TARGET%\Web.config"
|
||||
Libraries\CTT\ctt.exe source:"NzbDrone.Services\NzbDrone.Services.Service\Web.config" transform:"NzbDrone.Services\NzbDrone.Services.Service\Web.Release.config" destination:"%TARGET%\Web.production.config"
|
||||
|
||||
CD %TARGET%
|
||||
|
||||
del nlog.xml /Q /F /S
|
||||
del nlog.pdb /Q /F /S
|
||||
del ninject*.pdb /Q /F /S
|
||||
del ninject*.xml /Q /F /S
|
||||
del Mvc*.pdb /Q /F /S
|
||||
del bin\*.xml /Q /F /S
|
||||
|
||||
cd ..
|
||||
|
||||
rd C:\inetpub\services_stage /S /Q
|
||||
|
||||
xcopy _rawPackage_service\*.* C:\inetpub\stage-services.nzbdrone.com /E /V /I /Y
|
||||
|
||||
|
Loading…
Reference in new issue