From 53f97c98412e6eb5cc1bcc74777852cc2b06b761 Mon Sep 17 00:00:00 2001 From: Konstantinos Karakostas Date: Sun, 20 Nov 2022 19:32:07 +0200 Subject: [PATCH] build: dotnet: revert optional changes/deletions --- build/VStudio/Directory.Build.props | 9 +++++ build/VStudio/dotnet/Directory.Build.props | 7 ---- build/VStudio/dotnet/winfsp.net.csproj | 43 +++++++++++++++------ build/VStudio/testing/Directory.Build.props | 11 ------ build/VStudio/testing/memfs-dotnet.csproj | 20 ++++++++++ 5 files changed, 61 insertions(+), 29 deletions(-) create mode 100644 build/VStudio/Directory.Build.props delete mode 100644 build/VStudio/dotnet/Directory.Build.props delete mode 100644 build/VStudio/testing/Directory.Build.props diff --git a/build/VStudio/Directory.Build.props b/build/VStudio/Directory.Build.props new file mode 100644 index 00000000..f22c97d3 --- /dev/null +++ b/build/VStudio/Directory.Build.props @@ -0,0 +1,9 @@ + + + + + $(SolutionDir)build\$(MSBuildProjectName).build\ + + + + \ No newline at end of file diff --git a/build/VStudio/dotnet/Directory.Build.props b/build/VStudio/dotnet/Directory.Build.props deleted file mode 100644 index dc3d2356..00000000 --- a/build/VStudio/dotnet/Directory.Build.props +++ /dev/null @@ -1,7 +0,0 @@ - - - $(SolutionDir)build\$(Configuration)\$(MSBuildProjectName) - $(SolutionDir)build\$(MSBuildProjectName).build\ - $(BaseIntermediateOutputPath)$(Configuration)\ - - \ No newline at end of file diff --git a/build/VStudio/dotnet/winfsp.net.csproj b/build/VStudio/dotnet/winfsp.net.csproj index 34dbc2f2..b153d42c 100644 --- a/build/VStudio/dotnet/winfsp.net.csproj +++ b/build/VStudio/dotnet/winfsp.net.csproj @@ -9,11 +9,32 @@ Fsp $(MyProductFileName)-msil 512 + $(SolutionDir)build\$(Configuration)\$(MSBuildProjectName) + $(BaseIntermediateOutputPath)$(Configuration)\ true $(BaseIntermediateOutputPath)$(Configuration)\$(MyProductFileName)-msil.xml true 1591 + + true + full + false + DEBUG;TRACE + prompt + 4 + $(BaseIntermediateOutputPath)$(Configuration)\$(MyProductFileName)-msil.xml + 1591 + + + pdbonly + true + TRACE + prompt + 4 + $(BaseIntermediateOutputPath)$(Configuration)\$(MyProductFileName)-msil.xml + 1591 + true @@ -65,18 +86,18 @@ exit /b 0 - set TargetName=$(TargetName) - set MyAssemblyPolicyVersion=$(MyAssemblyPolicyVersion) - set MyAssemblyVersion=$(MyAssemblyVersion) +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 - ) +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 - +"$(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 + \ No newline at end of file diff --git a/build/VStudio/testing/Directory.Build.props b/build/VStudio/testing/Directory.Build.props deleted file mode 100644 index f0128b25..00000000 --- a/build/VStudio/testing/Directory.Build.props +++ /dev/null @@ -1,11 +0,0 @@ - - - - - $(SolutionDir)build\$(Configuration)\$(MSBuildProjectName) - $(SolutionDir)build\$(MSBuildProjectName).build\ - $(BaseIntermediateOutputPath)$(Configuration)\ - - - - \ No newline at end of file diff --git a/build/VStudio/testing/memfs-dotnet.csproj b/build/VStudio/testing/memfs-dotnet.csproj index f47c2304..fe7feabe 100644 --- a/build/VStudio/testing/memfs-dotnet.csproj +++ b/build/VStudio/testing/memfs-dotnet.csproj @@ -6,8 +6,28 @@ memfs-dotnet memfs memfs-dotnet-msil + $(SolutionDir)build\$(Configuration)\$(MSBuildProjectName) + $(BaseIntermediateOutputPath)$(Configuration)\ 512 + + AnyCPU + true + full + false + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + TRACE + prompt + 4 +