You've already forked linux-packaging-mono
Imported Upstream version 5.20.0.180
Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
parent
0e2d47d1c8
commit
0510252385
@@ -31,6 +31,8 @@ using System.Xml;
|
||||
using Microsoft.Build.BuildEngine;
|
||||
using NUnit.Framework;
|
||||
|
||||
using MonoTests.Helpers;
|
||||
|
||||
namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
[TestFixture]
|
||||
public class Conditions {
|
||||
@@ -297,7 +299,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
<B Condition="" 'on' == 'true' ""></B>
|
||||
<C Condition="" 4 == 4.0 and 04 == 4""></C>
|
||||
<D Condition="" !(false and false) == !false or !false ""></D>
|
||||
<E Condition="" Exists ('Test\resources\Import.csproj') ""></E>
|
||||
<E Condition="" Exists ('" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"') ""></E>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
";
|
||||
|
||||
@@ -30,6 +30,8 @@ using System.Xml;
|
||||
using Microsoft.Build.BuildEngine;
|
||||
using NUnit.Framework;
|
||||
|
||||
using MonoTests.Helpers;
|
||||
|
||||
namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
[TestFixture]
|
||||
public class EvaluationOrder {
|
||||
@@ -242,7 +244,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<PropertyGroup>
|
||||
<Property>Test/resources/Import.csproj</Property>
|
||||
<Property>" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"</Property>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project='$(Property)'/>
|
||||
@@ -268,7 +270,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
<Import Project='$(Property)'/>
|
||||
|
||||
<PropertyGroup>
|
||||
<Property>Test/resources/Import.csproj</Property>
|
||||
<Property>" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"</Property>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
";
|
||||
@@ -290,7 +292,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<ItemGroup>
|
||||
<Item Include='Test/resources/Import.csproj' />
|
||||
<Item Include='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"' />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project='@(Item)'/>
|
||||
@@ -316,7 +318,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
<Import Project='@(Item)'/>
|
||||
|
||||
<ItemGroup>
|
||||
<Item Include='Test/resources/Import.csproj' />
|
||||
<Item Include='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"' />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
";
|
||||
@@ -340,7 +342,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
<ImportedProperty>AnotherValue</ImportedProperty>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project='Test/resources/Import.csproj'/>
|
||||
<Import Project='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"'/>
|
||||
</Project>
|
||||
";
|
||||
|
||||
@@ -359,7 +361,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<Import Project='Test/resources/Import.csproj'/>
|
||||
<Import Project='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"'/>
|
||||
|
||||
<PropertyGroup>
|
||||
<ImportedProperty>AnotherValue</ImportedProperty>
|
||||
@@ -382,7 +384,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<Import Project='Test/resources/Import.csproj'/>
|
||||
<Import Project='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/Import.csproj") + @"'/>
|
||||
|
||||
<PropertyGroup>
|
||||
<ImportedProperty>Another$(ImportedProperty)</ImportedProperty>
|
||||
@@ -405,7 +407,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<PropertyGroup>
|
||||
<Property>Test\resources\TestTasks.dll</Property>
|
||||
<Property>" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"</Property>
|
||||
</PropertyGroup>
|
||||
|
||||
<UsingTask AssemblyFile='$(Property)' TaskName='TrueTestTask' />
|
||||
|
||||
@@ -35,6 +35,8 @@ using NUnit.Framework;
|
||||
using System.IO;
|
||||
using Microsoft.Build.Framework;
|
||||
|
||||
using MonoTests.Helpers;
|
||||
|
||||
namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
[TestFixture]
|
||||
public class Items {
|
||||
@@ -722,9 +724,9 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
public void TestEmptyItemsWithBatching ()
|
||||
{
|
||||
string project_xml = @"<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='TestTask_TaskItem' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='TestTask_TaskItems' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<UsingTask TaskName='TestTask_TaskItem' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<UsingTask TaskName='TestTask_TaskItems' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<Target Name=""1"">
|
||||
<StringTestTask Property=""%(Item4.Identity)"">
|
||||
<Output TaskParameter=""OutputString"" PropertyName=""OutputString""/>
|
||||
@@ -808,7 +810,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>@(A)g</B>
|
||||
@@ -875,7 +877,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<ItemGroup>
|
||||
<A Include='A;B;C' />
|
||||
</ItemGroup>
|
||||
@@ -901,7 +903,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>A;B</B>
|
||||
@@ -946,7 +948,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>A;B</B>
|
||||
@@ -995,7 +997,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>A;B</B>
|
||||
@@ -1041,7 +1043,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>A;B</B>
|
||||
@@ -1192,7 +1194,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
{
|
||||
return @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>A;B</B>
|
||||
@@ -1236,7 +1238,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<ItemGroup>
|
||||
<A Include='A;B;C' />
|
||||
</ItemGroup>
|
||||
@@ -1260,7 +1262,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<ItemGroup>
|
||||
<A Include='A;B;C' />
|
||||
</ItemGroup>
|
||||
@@ -1284,7 +1286,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<ItemGroup>
|
||||
<A Include='A;B;C' />
|
||||
</ItemGroup>
|
||||
@@ -1311,7 +1313,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='BatchingTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<ItemGroup>
|
||||
<A Include='A;B;C' />
|
||||
<B Include='Foo;' />
|
||||
|
||||
@@ -31,6 +31,8 @@ using System.Xml;
|
||||
using Microsoft.Build.BuildEngine;
|
||||
using NUnit.Framework;
|
||||
|
||||
using MonoTests.Helpers;
|
||||
|
||||
namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
[TestFixture]
|
||||
public class Properties {
|
||||
@@ -72,7 +74,7 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
{
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='Test\resources\TestTasks.dll' />
|
||||
<UsingTask TaskName='StringTestTask' AssemblyFile='" + TestResourceHelper.GetFullPathOfResource ("Test/resources/TestTasks.dll") + @"' />
|
||||
<PropertyGroup>
|
||||
<A>A</A>
|
||||
<B>B</B>
|
||||
|
||||
Reference in New Issue
Block a user