Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions src/rgen/Microsoft.Macios.Transformer/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine ("Hello, World!");
14 changes: 13 additions & 1 deletion src/rgen/rgen.sln
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@


Microsoft Visual Studio Solution File, Format Version 12.00
#
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Generator", "Microsoft.Macios.Generator\Microsoft.Macios.Generator.csproj", "{8E9CF45D-E836-447E-9290-03A9CACE2704}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Generator.Sample", "Microsoft.Macios.Generator.Sample\Microsoft.Macios.Generator.Sample.csproj", "{AD0A1FDC-350F-47E2-AA9D-A6F32793C130}"
Expand All @@ -14,6 +15,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Bindings.A
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Binding.Common", "Microsoft.Macios.Binding.Common\Microsoft.Macios.Binding.Common.csproj", "{536758BC-2A88-4B79-ABB1-6B39494A5FE6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Transformer", "Microsoft.Macios.Transformer\Microsoft.Macios.Transformer.csproj", "{D05D2AAA-71C9-49C9-B344-2F8C251E60DB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Transformer.Tests", "..\..\tests\rgen\Microsoft.Macios.Transformer.Tests\Microsoft.Macios.Transformer.Tests.csproj", "{BE23E467-7971-4439-BEE8-220B77F40027}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Bindings.CodeFixers", "Microsoft.Macios.Bindings.CodeFixers\Microsoft.Macios.Bindings.CodeFixers.csproj", "{4986D2E4-89B0-43A3-9879-93ED236C265D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Macios.Bindings.CodeFixers.Tests", "..\..\tests\rgen\Microsoft.Macios.Bindings.CodeFixers.Tests\Microsoft.Macios.Bindings.CodeFixers.Tests.csproj", "{E7928D64-8E45-40BF-B393-732FF20D35E7}"
Expand Down Expand Up @@ -52,6 +56,14 @@ Global
{536758BC-2A88-4B79-ABB1-6B39494A5FE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{536758BC-2A88-4B79-ABB1-6B39494A5FE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{536758BC-2A88-4B79-ABB1-6B39494A5FE6}.Release|Any CPU.Build.0 = Release|Any CPU
{D05D2AAA-71C9-49C9-B344-2F8C251E60DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D05D2AAA-71C9-49C9-B344-2F8C251E60DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D05D2AAA-71C9-49C9-B344-2F8C251E60DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D05D2AAA-71C9-49C9-B344-2F8C251E60DB}.Release|Any CPU.Build.0 = Release|Any CPU
{BE23E467-7971-4439-BEE8-220B77F40027}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BE23E467-7971-4439-BEE8-220B77F40027}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BE23E467-7971-4439-BEE8-220B77F40027}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BE23E467-7971-4439-BEE8-220B77F40027}.Release|Any CPU.Build.0 = Release|Any CPU
{4986D2E4-89B0-43A3-9879-93ED236C265D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4986D2E4-89B0-43A3-9879-93ED236C265D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4986D2E4-89B0-43A3-9879-93ED236C265D}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>

<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\rgen\Microsoft.Macios.Transformer\Microsoft.Macios.Transformer.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\..\common\Configuration.cs" >
<Link>external\Configuration.cs</Link>
</Compile>
<Compile Include="..\..\common\ConfigurationXUnit.cs" >
<Link>external\ConfigurationXUnit.cs</Link>
</Compile>
<Compile Include="..\..\common\Profile.cs">
<Link>external\Profile.cs</Link>
</Compile>
<Compile Include="..\..\common\ExecutionHelper.cs">
<Link>external\ExecutionHelper.cs</Link>
</Compile>
<Compile Include="..\..\..\tools\common\ApplePlatform.cs">
<Link>external\ApplePlatform.cs</Link>
</Compile>
<Compile Include="..\..\..\tools\common\TargetFramework.cs">
<Link>external\TargetFramework.cs</Link>
</Compile>
<Compile Include="..\..\..\tools\common\StringUtils.cs">
<Link>external\StringUtils.cs</Link>
</Compile>
<Compile Include="..\..\..\tools\common\Execution.cs">
<Link>external\Execution.cs</Link>
</Compile>
<Compile Include="..\..\..\tools\common\SdkVersions.cs">
<Link>external\SdkVersions.cs</Link>
</Compile>
<Compile Include="..\..\mtouch\Cache.cs">
<Link>external\Cache.cs</Link>
</Compile>
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions tests/rgen/Microsoft.Macios.Transformer.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Microsoft.Macios.Transformer.Tests;

public class UnitTest1 {
[Fact]
public void Test1 ()
{
Assert.True (true);
}
}
18 changes: 17 additions & 1 deletion tests/xharness/Jenkins/Jenkins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,23 @@ Task PopulateTasksAsync ()
Ignored = !TestSelection.IsEnabled (TestLabel.Generator),
};
Tasks.Add (runDotNetRoslynAnalyzer);

var buildDotNetRoslynTransformerProject = new TestProject (TestLabel.Generator, Path.GetFullPath (Path.Combine (HarnessConfiguration.RootDirectory, "rgen", "Microsoft.Macios.Transformer.Tests", "Microsoft.Macios.Transformer.Tests.csproj"))) {
IsDotNetProject = true,
};
var buildDotNetRoslynTransformer = new MSBuildTask (jenkins: this, testProject: buildDotNetRoslynTransformerProject, processManager: processManager) {
TestProject = buildDotNetRoslynTransformerProject,
SpecifyPlatform = false,
SpecifyConfiguration = false,
Platform = TestPlatform.iOS,
};
var runDotNetRoslynTransformer = new DotNetTestTask (this, buildDotNetRoslynTransformer, processManager) {
TestProject = buildDotNetRoslynTransformerProject,
Platform = TestPlatform.iOS,
TestName = "Roslyn Transformer tests",
Mode = ".NET",
Ignored = !TestSelection.IsEnabled (TestLabel.Generator),
};
Tasks.Add (runDotNetRoslynTransformer);
var buildDotNetRoslynCodefixersProject = new TestProject (TestLabel.Generator, Path.GetFullPath (Path.Combine (HarnessConfiguration.RootDirectory, "rgen", "Microsoft.Macios.Bindings.CodeFixers.Tests", "Microsoft.Macios.Bindings.CodeFixers.Tests.csproj"))) {
IsDotNetProject = true,
};
Expand Down