99 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <Project Sdk="Microsoft.NET.Sdk">
 | |
|     
 | |
|     <Import Project="UnrealSharpManagedGlue.ubtplugin.csproj.props" Condition="Exists('UnrealSharpManagedGlue.ubtplugin.csproj.props')" />
 | |
|     <Import Project="$(EngineDir)\Source\Programs\Shared\UnrealEngine.csproj.props" />
 | |
| 
 | |
|     <PropertyGroup>
 | |
|         <UE5RulesProjPath>$(EngineDir)\Intermediate\Build\BuildRulesProjects\UE5Rules\UE5Rules.csproj</UE5RulesProjPath>
 | |
|     </PropertyGroup>
 | |
| 
 | |
|     <Target Name="ImportUE5RulesDefineConstants"
 | |
|             BeforeTargets="CoreCompile"
 | |
|             Condition="Exists('$(UE5RulesProjPath)')">
 | |
| 
 | |
|         <XmlPeek XmlInputPath="$(UE5RulesProjPath)"
 | |
|                  Query="//Project/PropertyGroup/DefineConstants/text()">
 | |
|             <Output TaskParameter="Result" ItemName="UE5Rules_DefineConstants" />
 | |
|         </XmlPeek>
 | |
| 
 | |
|         <PropertyGroup>
 | |
|             <DefineConstantsJoined>$([System.String]::Join(';', %(UE5Rules_DefineConstants.Identity)))</DefineConstantsJoined>
 | |
|             <DefineConstantsJoined>$(DefineConstantsJoined.Replace('%24(DefineConstants);', ''))</DefineConstantsJoined>
 | |
|             
 | |
|             <DefineConstants Condition="'$(DefineConstants)' != '' and '$(DefineConstantsJoined)' != ''">
 | |
|                 $(DefineConstants);$(DefineConstantsJoined)
 | |
|             </DefineConstants>
 | |
|             
 | |
|             <DefineConstants Condition="'$(DefineConstants)' == '' and '$(DefineConstantsJoined)' != ''">
 | |
|                 $(DefineConstantsJoined)
 | |
|             </DefineConstants>
 | |
| 
 | |
|             <DefineConstants>$([System.Text.RegularExpressions.Regex]::Replace($(DefineConstants), '\s+', ''))</DefineConstants>
 | |
|         </PropertyGroup>
 | |
|     </Target>
 | |
| 
 | |
|     <PropertyGroup>
 | |
|         <_TargetFrameworkToUse>net8.0</_TargetFrameworkToUse>
 | |
|         <TargetFramework>net8.0</TargetFramework>
 | |
|     </PropertyGroup>
 | |
| 
 | |
|     <Target Name="SetTargetFramework"
 | |
|             AfterTargets="ImportUE5RulesDefineConstants"
 | |
|             BeforeTargets="CoreCompile">
 | |
|         <PropertyGroup>
 | |
|             <_TargetFrameworkToUse Condition="!$(DefineConstants.Contains('UE_5_5_OR_LATER'))">net6.0</_TargetFrameworkToUse>
 | |
|             <TargetFramework>$(_TargetFrameworkToUse)</TargetFramework>
 | |
|         </PropertyGroup>
 | |
|     </Target>
 | |
| 
 | |
| 
 | |
|     <PropertyGroup>
 | |
|         <Configuration Condition=" '$(Configuration)' == '' ">Development</Configuration>
 | |
|         <OutputType>Library</OutputType>
 | |
|         <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
 | |
|         <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
 | |
|         <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
 | |
|         <RootNamespace>UnrealSharpScriptGenerator</RootNamespace>
 | |
|         <AssemblyName>UnrealSharpScriptGenerator</AssemblyName>
 | |
|         <Configurations>Debug;Release;Development</Configurations>
 | |
|         <DebugType>pdbonly</DebugType>
 | |
|         <Nullable>enable</Nullable>
 | |
| 
 | |
|         <RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' AND '$(PackAsTool)' != 'true'">$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifier>
 | |
|     </PropertyGroup>
 | |
|     
 | |
|     <ItemGroup>
 | |
|         <PackageReference Include="Microsoft.CSharp" />
 | |
|     </ItemGroup>
 | |
| 
 | |
|     <PropertyGroup>
 | |
|         <GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
 | |
|     </PropertyGroup>
 | |
| 
 | |
|     <Target Name="GetDependencyTargetPaths">
 | |
|         <ItemGroup>
 | |
|             <TargetPathWithTargetPlatformMoniker Include="$(PKGCppAst)\lib\net8.0\CppAst.dll" IncludeRuntimeDependency="true" />
 | |
|         </ItemGroup>
 | |
|     </Target>
 | |
|     
 | |
|     <ItemGroup>
 | |
|         <Reference Include="EpicGames.Build">
 | |
|             <HintPath>$(EngineDir)\Binaries\DotNET\UnrealBuildTool\EpicGames.Build.dll</HintPath>
 | |
|         </Reference>
 | |
|         <Reference Include="EpicGames.Core">
 | |
|             <HintPath>$(EngineDir)\Binaries\DotNET\UnrealBuildTool\EpicGames.Core.dll</HintPath>
 | |
|         </Reference>
 | |
|         <Reference Include="EpicGames.UHT">
 | |
|             <HintPath>$(EngineDir)\Binaries\DotNET\UnrealBuildTool\EpicGames.UHT.dll</HintPath>
 | |
|         </Reference>
 | |
|         <Reference Include="UnrealBuildTool">
 | |
|             <HintPath>$(EngineDir)\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll</HintPath>
 | |
|         </Reference>
 | |
|     </ItemGroup>
 | |
| 
 | |
|     <ItemGroup>
 | |
|         <Compile Include="..\..\Managed\Shared\DotNetUtilities.cs" Link="..\..\..\Managed\Shared\DotNetUtilities.cs" />
 | |
|     </ItemGroup>
 | |
|     
 | |
| </Project>
 |