mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
93 lines
4.0 KiB
XML
93 lines
4.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.common.props))/build.common.props" />
|
|
<PropertyGroup>
|
|
<TargetFrameworks>netstandard2.0;net35</TargetFrameworks>
|
|
<ProjectName>winfsp.net</ProjectName>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<Nullable>disable</Nullable>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<RootNamespace>Fsp</RootNamespace>
|
|
<AssemblyName>$(MyProductFileName)-msil</AssemblyName>
|
|
<FileAlignment>512</FileAlignment>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<DocumentationFile>$(BaseIntermediateOutputPath)$(Configuration)\$(MyProductFileName)-msil.xml</DocumentationFile>
|
|
<NoWarn>1591</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<DebugType>pdbonly</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<DocumentationFile>$(BaseIntermediateOutputPath)$(Configuration)\$(MyProductFileName)-msil.xml</DocumentationFile>
|
|
<NoWarn>1591</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<SignAssembly>true</SignAssembly>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<AssemblyOriginatorKeyFile>winfsp.net.snk</AssemblyOriginatorKeyFile>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Include="..\..\..\src\dotnet\FileSystemBase+Const.cs">
|
|
<Link>FileSystemBase+Const.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\..\src\dotnet\FileSystemBase.cs">
|
|
<Link>FileSystemBase.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\..\src\dotnet\FileSystemHost.cs">
|
|
<Link>FileSystemHost.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\..\src\dotnet\Interop.cs">
|
|
<Link>Interop.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\..\src\dotnet\Service.cs">
|
|
<Link>Service.cs</Link>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="winfsp.net.snk" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
|
<PackageReference Include="Microsoft.Win32.Registry">
|
|
<Version>5.0.0</Version>
|
|
</PackageReference>
|
|
<PackageReference Include="System.IO.FileSystem.AccessControl">
|
|
<Version>5.0.0</Version>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<AssemblyName>$(MyProductFileName)-msil</AssemblyName>
|
|
<AssemblyTitle>$(MyDescription)</AssemblyTitle>
|
|
<Product>$(MyProductName)</Product>
|
|
<Copyright>$(MyCopyright)</Copyright>
|
|
<AssemblyVersion>$(MyAssemblyVersion)</AssemblyVersion>
|
|
<FileVersion>$(MyVersion)</FileVersion>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<PostBuildEvent>exit /b 0
|
|
|
|
set TargetName=$(TargetName)
|
|
set MyAssemblyPolicyVersion=$(MyAssemblyPolicyVersion)
|
|
set MyAssemblyVersion=$(MyAssemblyVersion)
|
|
|
|
setlocal EnableDelayedExpansion
|
|
if exist $(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config del $(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config
|
|
for /f "delims=" %25%25l in ($(ProjectDir)winfsp.net.policy.config) do (
|
|
set line=%25%25l
|
|
echo !line! >>$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config
|
|
)
|
|
|
|
"$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.0A\Bin\al.exe" /product:"$(MyProductName)" /title:"$(MyDescription)" /company:"$(MyCompanyName)" /copyright:"$(MyCopyright)" /version:"$(MyAssemblyPolicyVersion)" /fileversion:"$(MyVersion)" /link:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config /out:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).dll /keyfile:$(ProjectDir)$(ProjectName).snk
|
|
</PostBuildEvent>
|
|
</PropertyGroup>
|
|
</Project> |