Skip to content

Commit 21f6ece

Browse files
committed
Merge pull request #37 from ogail/xunit
Change test dependency on packages folder
2 parents b76eef1 + dc2c48c commit 21f6ece

File tree

73 files changed

+269
-561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+269
-561
lines changed

setup/azurecmdfiles.wxi

Lines changed: 0 additions & 372 deletions
Large diffs are not rendered by default.

src/AzurePowershell.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
77
local.runsettings = local.runsettings
88
Local.testsettings = Local.testsettings
99
Local.x64.testsettings = Local.x64.testsettings
10-
UnitTest.testsettings = UnitTest.testsettings
1110
EndProjectSection
1211
EndProject
1312
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands", "ServiceManagement\Services\Commands\Commands.csproj", "{CD5AA507-F5EF-473D-855B-84B91A1ABE54}"

src/Common/Commands.Common.Test/Commands.Common.Test.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -250,4 +251,10 @@
250251
<Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
251252
<Error Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
252253
</Target>
254+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
255+
<PropertyGroup>
256+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
257+
</PropertyGroup>
258+
<Error Condition="!Exists('..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props'))" />
259+
</Target>
253260
</Project>

src/Common/Commands.Common.Test/packages.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Hyak.Common" version="1.0.2" targetFramework="net45" />
44
<package id="Microsoft.Azure.Common" version="2.0.4" targetFramework="net45" />
@@ -23,4 +23,5 @@
2323
<package id="System.Spatial" version="5.6.0" targetFramework="net45" />
2424
<package id="WindowsAzure.Storage" version="4.0.0" targetFramework="net45" />
2525
<package id="xunit" version="1.9.2" targetFramework="net45" />
26+
<package id="xunit.runner.visualstudio" version="0.99.9-build1021" targetFramework="net45" />
2627
</packages>

src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -15,6 +16,7 @@
1516
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1617
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1718
<RestorePackages>true</RestorePackages>
19+
<NuGetPackageImportStamp>b9c3e5d6</NuGetPackageImportStamp>
1820
</PropertyGroup>
1921
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2022
<DebugSymbols>true</DebugSymbols>
@@ -511,9 +513,12 @@
511513
<Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
512514
<Error Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
513515
</Target>
514-
<PropertyGroup>
515-
<PostBuildEvent>xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E</PostBuildEvent>
516-
</PropertyGroup>
516+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
517+
<PropertyGroup>
518+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
519+
</PropertyGroup>
520+
<Error Condition="!Exists('..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props'))" />
521+
</Target>
517522
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
518523
Other similar extension points exist, see Microsoft.Common.targets.
519524
<Target Name="BeforeBuild">

src/Common/Commands.ScenarioTest/Scheduler/SchedulerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ protected void RunPowerShellTest(params string[] scripts)
5252

5353
List<string> modules = Directory.GetFiles("Resources\\Scheduler", "*.ps1").ToList();
5454
modules.Add("Common.ps1");
55+
modules.Add(@"..\..\..\..\Package\Debug\ServiceManagement\Azure\Azure.psd1");
5556

5657
helper.SetupEnvironment(AzureModule.AzureServiceManagement);
57-
helper.SetupModules(AzureModule.AzureServiceManagement, modules.ToArray());
58+
helper.SetupModules(modules.ToArray());
5859

5960
helper.RunPowerShellTest(scripts);
6061
}

src/Common/Commands.ScenarioTest/TrafficManagerTests/TrafficManagerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,10 @@ protected void RunPowerShellTest(params string[] scripts)
274274

275275
List<string> modules = Directory.GetFiles("Resources\\TrafficManager", "*.ps1").ToList();
276276
modules.Add("Common.ps1");
277+
modules.Add(@"..\..\..\..\Package\Debug\ServiceManagement\Azure\Azure.psd1");
277278

278279
helper.SetupEnvironment(AzureModule.AzureServiceManagement);
279-
helper.SetupModules(AzureModule.AzureServiceManagement, modules.ToArray());
280+
helper.SetupModules(modules.ToArray());
280281

281282
helper.RunPowerShellTest(scripts);
282283
}

src/Common/Commands.ScenarioTest/packages.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Hyak.Common" version="1.0.2" targetFramework="net45" />
44
<package id="Microsoft.Azure.Common" version="2.0.4" targetFramework="net45" />
@@ -25,4 +25,5 @@
2525
<package id="WindowsAzure.Storage" version="4.0.0" targetFramework="net45" />
2626
<package id="xunit" version="1.9.2" targetFramework="net45" />
2727
<package id="xunit.extensions" version="1.9.2" targetFramework="net45" />
28+
<package id="xunit.runner.visualstudio" version="0.99.9-build1021" targetFramework="net45" />
2829
</packages>

src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -13,6 +14,7 @@
1314
<FileAlignment>512</FileAlignment>
1415
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1516
<RestorePackages>true</RestorePackages>
17+
<NuGetPackageImportStamp>5af60359</NuGetPackageImportStamp>
1618
</PropertyGroup>
1719
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1820
<DebugSymbols>true</DebugSymbols>
@@ -151,6 +153,7 @@
151153
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
152154
</PropertyGroup>
153155
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
156+
<Error Condition="!Exists('..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props'))" />
154157
</Target>
155158
<Import Project="..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
156159
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">

src/Common/Commands.ScenarioTests.Common/EnvironmentSetupHelper.cs

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,21 @@ namespace Microsoft.WindowsAzure.Commands.ScenarioTest
3333
public class EnvironmentSetupHelper
3434
{
3535
private static string testEnvironmentName = "__test-environment";
36+
3637
private static string testSubscriptionName = "__test-subscriptions";
38+
3739
private AzureSubscription testSubscription;
40+
3841
private AzureAccount testAccount;
42+
43+
private const string PackageDirectory = @"..\..\..\..\..\Package\Debug";
44+
3945
protected List<string> modules;
46+
4047
protected ProfileClient ProfileClient { get; set; }
4148

4249
public EnvironmentSetupHelper()
4350
{
44-
var datastore = new MockDataStore();
45-
AzureSession.DataStore = datastore;
46-
var profile = new AzureProfile(Path.Combine(AzureSession.ProfileDirectory, AzureSession.ProfileFile));
47-
AzurePSCmdlet.CurrentProfile = profile;
48-
AzureSession.DataStore = datastore;
49-
ProfileClient = new ProfileClient(profile);
50-
51-
// Ignore SSL errors
52-
System.Net.ServicePointManager.ServerCertificateValidationCallback += (se, cert, chain, sslerror) => true;
5351
// Set RunningMocked
5452
if (HttpMockServer.GetCurrentMode() == HttpRecorderMode.Playback)
5553
{
@@ -59,6 +57,16 @@ public EnvironmentSetupHelper()
5957
{
6058
TestMockSupport.RunningMocked = false;
6159
}
60+
61+
var datastore = new MockDataStore();
62+
AzureSession.DataStore = datastore;
63+
var profile = new AzureProfile(Path.Combine(AzureSession.ProfileDirectory, AzureSession.ProfileFile));
64+
AzurePSCmdlet.CurrentProfile = profile;
65+
AzureSession.DataStore = datastore;
66+
ProfileClient = new ProfileClient(profile);
67+
68+
// Ignore SSL errors
69+
System.Net.ServicePointManager.ServerCertificateValidationCallback += (se, cert, chain, sslerror) => true;
6270
}
6371

6472
/// <summary>
@@ -201,16 +209,16 @@ public void SetupModules(AzureModule mode, params string[] modules)
201209
this.modules = new List<string>();
202210
if (mode == AzureModule.AzureProfile)
203211
{
204-
this.modules.Add(@"ServiceManagement\Azure\Azure.psd1");
205-
this.modules.Add(@"ResourceManager\AzureResourceManager\AzureResourceManager.psd1");
212+
this.modules.Add(Path.Combine(PackageDirectory, @"ServiceManagement\Azure\Azure.psd1"));
213+
this.modules.Add(Path.Combine(PackageDirectory, @"ResourceManager\AzureResourceManager\AzureResourceManager.psd1"));
206214
}
207215
else if (mode == AzureModule.AzureServiceManagement)
208216
{
209-
this.modules.Add(@"ServiceManagement\Azure\Azure.psd1");
217+
this.modules.Add(Path.Combine(PackageDirectory, @"ServiceManagement\Azure\Azure.psd1"));
210218
}
211219
else if (mode == AzureModule.AzureResourceManager)
212220
{
213-
this.modules.Add(@"ResourceManager\AzureResourceManager\AzureResourceManager.psd1");
221+
this.modules.Add(Path.Combine(PackageDirectory, @"ResourceManager\AzureResourceManager\AzureResourceManager.psd1"));
214222
}
215223
else
216224
{
@@ -221,6 +229,14 @@ public void SetupModules(AzureModule mode, params string[] modules)
221229
this.modules.AddRange(modules);
222230
}
223231

232+
public void SetupModules(params string[] modules)
233+
{
234+
this.modules = new List<string>();
235+
this.modules.Add("Assert.ps1");
236+
this.modules.Add("Common.ps1");
237+
this.modules.AddRange(modules);
238+
}
239+
224240
public virtual Collection<PSObject> RunPowerShellTest(params string[] scripts)
225241
{
226242
using (var powershell = System.Management.Automation.PowerShell.Create())

src/Common/Commands.ScenarioTests.Common/packages.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Hyak.Common" version="1.0.2" targetFramework="net45" />
44
<package id="Microsoft.Azure.Common" version="2.0.4" targetFramework="net45" />
@@ -15,4 +15,5 @@
1515
<package id="Microsoft.WindowsAzure.Management" version="4.0.1" targetFramework="net45" />
1616
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net45" />
1717
<package id="xunit" version="1.9.2" targetFramework="net45" />
18+
<package id="xunit.runner.visualstudio" version="0.99.9-build1021" targetFramework="net45" />
1819
</packages>

src/Local.testsettings

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
<Description>These are default test settings for a local test run.</Description>
44
<Deployment>
55
<DeploymentItem filename="ServiceManagement\Sql\Commands.SqlDatabase.Test\Resources\" />
6-
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Test\Resources\" />
76
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Extensions.Test\Resources\" />
87
<DeploymentItem filename="ResourceManager\Resources\Commands.Resources.Test\Resources\" />
98
<DeploymentItem filename="ServiceManagement\Services\Commands.Test\Resources\" />
109
<DeploymentItem filename="ServiceManagement\Sql\Commands.SqlDatabase.Test\TestScripts\" />
1110
<DeploymentItem filename="Common\Commands.ScenarioTest\Resources\" />
1211
<DeploymentItem filename="Common\Commands.ScenarioTest\bin\Debug\" />
1312
<DeploymentItem filename="Package\Debug\ServiceManagement\Azure\Services\Resources" outputDirectory="Resources" />
14-
<DeploymentItem filename="Package\Debug\" />
1513
</Deployment>
1614
<Execution>
1715
<Timeouts testTimeout="3000000" />

src/Local.x64.testsettings

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
<TestSettings name="Local.x64" id="a0a8374d-b26f-470a-8263-0e223bfc99b5" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
33
<Description>These are default test settings for a local test run under x64 architecture.</Description>
44
<Deployment>
5-
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Test\Resources\" />
6-
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Extensions.Test\Resources\" />
75
<DeploymentItem filename="Common\Commands.ScenarioTest\Resources\" />
8-
<DeploymentItem filename="Package\Debug\" />
6+
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Extensions.Test\Resources\" />
97
<DeploymentItem filename="Package\Debug\ServiceManagement\Azure\Services\Resources" outputDirectory="Resources" />
108
<DeploymentItem filename="ServiceManagement\Sql\Commands.SqlDatabase.Test\TestScripts\" />
119
<DeploymentItem filename="ServiceManagement\Sql\Commands.SqlDatabase.Test\Resources\" />

src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -14,7 +15,7 @@
1415
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
1516
<RestorePackages>true</RestorePackages>
1617
<TargetFrameworkProfile />
17-
<NuGetPackageImportStamp>49379715</NuGetPackageImportStamp>
18+
<NuGetPackageImportStamp>a8627654</NuGetPackageImportStamp>
1819
</PropertyGroup>
1920
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2021
<DebugSymbols>true</DebugSymbols>
@@ -374,15 +375,13 @@
374375
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
375376
</PropertyGroup>
376377
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
378+
<Error Condition="!Exists('..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props'))" />
377379
</Target>
378380
<Import Project="..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
379381
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
380382
<Error Condition="!Exists('..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
381383
<Error Condition="Exists('..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
382384
</Target>
383-
<PropertyGroup>
384-
<PostBuildEvent>xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E</PostBuildEvent>
385-
</PropertyGroup>
386385
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
387386
Other similar extension points exist, see Microsoft.Common.targets.
388387
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)