Skip to content

Commit

Permalink
Added publish profiles to exe project outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchiecarroll committed Nov 28, 2024
1 parent 0e15cf5 commit a5eea79
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 50 deletions.
16 changes: 11 additions & 5 deletions src/Tests/Behavioral/PointerToPointer/PointerToPointer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
<RootNamespace>go</RootNamespace>
<AssemblyName>PointerToPointer</AssemblyName>
<Product>go2cs</Product>
<Copyright>Copyright © 2022</Copyright>
<Copyright>Copyright © 2024</Copyright>
<PackageProjectUrl>https://github.com/GridProtectionAlliance/go2cs</PackageProjectUrl>
<RepositoryUrl>https://github.com/GridProtectionAlliance/go2cs</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<ApplicationIcon>go2cs.ico</ApplicationIcon>
<Nullable>enable</Nullable>
<NoWarn>660;661;IDE1006</NoWarn>
<Version>0.1.0</Version>
<NoWarn>660;661;IDE1006;CS8981</NoWarn>
<Version>0.1.4</Version>
<LangVersion>latest</LangVersion>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>

<PropertyGroup Condition="'$(OutDir)'==''">
Expand All @@ -38,12 +42,14 @@
<Using Include="System.Numerics.BigInteger" Alias="GoUntyped" />
<Using Include="System.ComponentModel.DescriptionAttribute" Alias="GoTag" />

<!-- TODO: Add references to required projects -->
<ProjectReference Include="..\..\..\gocore\golib\golib.csproj" />
<ProjectReference Include="..\..\..\gocore\fmt\fmt.csproj" />
<ProjectReference Include="..\..\..\gocore\math\math.csproj" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\go2cs.CodeGenerators\go2cs.CodeGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\go2cs.CodeGenerators\go2cs.CodeGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="All" />
</ItemGroup>

</Project>
</Project>
Binary file added src/Tests/Behavioral/PointerToPointer/go2cs.ico
Binary file not shown.
8 changes: 6 additions & 2 deletions src/Tests/Behavioral/SpreadOperator/SpreadOperator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
<ApplicationIcon>go2cs.ico</ApplicationIcon>
<Nullable>enable</Nullable>
<NoWarn>660;661;IDE1006;CS8981</NoWarn>
<Version>0.1.0</Version>
<Version>0.1.4</Version>
<LangVersion>latest</LangVersion>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>

<PropertyGroup Condition="'$(OutDir)'==''">
Expand All @@ -37,6 +39,8 @@
<Using Include="System.Numerics.Complex" Alias="complex128" />
<Using Include="System.Int32" Alias="rune" />
<Using Include="System.UIntPtr" Alias="uintptr" />
<Using Include="System.Numerics.BigInteger" Alias="GoUntyped" />
<Using Include="System.ComponentModel.DescriptionAttribute" Alias="GoTag" />

<!-- TODO: Add references to required projects -->
<ProjectReference Include="..\..\..\gocore\golib\golib.csproj" />
Expand All @@ -45,7 +49,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\go2cs.CodeGenerators\go2cs.CodeGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\go2cs.CodeGenerators\go2cs.CodeGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="All" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/go2cs2/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"program": "${fileDirname}",
"args": [
//"-var=false",
"-tree",
//"-tree",
//"..\\Tests\\Behavioral\\SortArrayType\\SortArrayType.go",
//"..\\Tests\\Behavioral\\ArrayPassByValue\\ArrayPassByValue.go",
//"..\\Tests\\Behavioral\\ExprSwitch\\ExprSwitch.go",
//"..\\Tests\\Behavioral\\ExprSwitch\\ExprSwitchMicro.go",
//"..\\Tests\\Behavioral\\InterfaceCasting\\InterfaceCasting.go",
//"..\\Tests\\Behavioral\\ForVariants\\ForVariants.go",
//"..\\Tests\\Behavioral\\IfStatements\\IfStatements.go",
//"..\\Tests\\Behavioral\\PointerToPointer\\PointerToPointer.go",
//"..\\Tests\\Behavioral\\PointerToPointer",
//"..\\Tests\\Behavioral\\LambdaFunctions",
//"..\\Tests\\Behavioral\\FirstClassFunctions",
//"..\\Tests\\Behavioral\\RangeStatements",
Expand Down
8 changes: 6 additions & 2 deletions src/go2cs2/csproj-template.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputType>%s</OutputType>
<TargetFrameworks>net9.0</TargetFrameworks>
<PublishReadyToRun>true</PublishReadyToRun>
<RootNamespace>go</RootNamespace>
Expand All @@ -16,6 +16,8 @@
<NoWarn>660;661;IDE1006;CS8981</NoWarn>
<Version>0.1.4</Version>
<LangVersion>latest</LangVersion>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>

<PropertyGroup Condition="'$(OutDir)'==''">
Expand All @@ -37,6 +39,8 @@
<Using Include="System.Numerics.Complex" Alias="complex128" />
<Using Include="System.Int32" Alias="rune" />
<Using Include="System.UIntPtr" Alias="uintptr" />
<Using Include="System.Numerics.BigInteger" Alias="GoUntyped" />
<Using Include="System.ComponentModel.DescriptionAttribute" Alias="GoTag" />

<!-- TODO: Add references to required projects -->
<ProjectReference Include="..\..\..\gocore\golib\golib.csproj" />
Expand All @@ -45,7 +49,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\go2cs.CodeGenerators\go2cs.CodeGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\go2cs.CodeGenerators\go2cs.CodeGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="All" />
</ItemGroup>

</Project>
Loading

0 comments on commit a5eea79

Please sign in to comment.