forked from Ivasoft/DllExports
60 lines
2.8 KiB
XML
60 lines
2.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<Import Project="..\Version.props" />
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net472;net5.0</TargetFrameworks>
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
|
|
<Title>IvDllExports-Cli</Title>
|
|
<PackageId>IvDllExports-Cli</PackageId>
|
|
<Authors>lordmilko</Authors>
|
|
<Description>Unmanaged Exports for legacy/SDK style projects</Description>
|
|
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
|
<DevelopmentDependency>true</DevelopmentDependency>
|
|
<Copyright>(c) 2023 lordmilko. All rights reserved.</Copyright>
|
|
|
|
<PackageReleaseNotes>DllExports provides unmanaged exports for both legacy and SDK style projects.
|
|
|
|
Unlike other libraries that rely on a wacky series of external dependencies, DllExports has everything it needs to do its job built in.
|
|
|
|
DllExports is entirely driven by its MSBuild task, and provides a number of knobs you can adjust to customize the resulting assemblies, including converting AnyCPU assemblies into both x86 and x64 outputs.
|
|
|
|
In order to be able to debug your exports in Visual Studio you must be targeting .NET Framework and be using Visual Studio 2019 or newer. .NET Standard exports work but you can't debug them. .NET Core applications can't truly have unmanaged exports as you can't use mscoree to load their runtime. Consider using a library such as DNNE for proper .NET Core support.</PackageReleaseNotes>
|
|
<OutputType>EXE</OutputType>
|
|
<RollForward>Major</RollForward>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="..\LICENSE" Pack="true" PackagePath="" Visible="false" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="dnlib" Version="3.6.0" IncludeAssets="all" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="..\DllExports.MSBuild\IsolatedTaskRunner.cs" />
|
|
<Compile Include="..\DllExports.MSBuild\NetCoreAssemblyLoadContext.cs" />
|
|
<Compile Include="..\DllExports.MSBuild\NetFrameworkAssemblyLoadContext.cs" />
|
|
<Compile Include="..\DllExports.MSBuild\RemoteHelper.cs" />
|
|
|
|
<ProjectReference Include="..\DllExports\DllExports.csproj" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<!-- Copy dependencies to output dir -->
|
|
<PropertyGroup>
|
|
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
|
|
<ItemGroup>
|
|
<_ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Add file to package with consideration of sub folder. If empty, the root folder is chosen. -->
|
|
<BuildOutputInPackage Include="@(_ReferenceCopyLocalPaths)" TargetPath="%(_ReferenceCopyLocalPaths.DestinationSubDirectory)" />
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project> |