Skip to content

Commit 810db8d

Browse files
committed
Now export ready csproj
1 parent ce79d96 commit 810db8d

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

LanguageSupport.csproj

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3+
<RootNamespace>LanguageSupport</RootNamespace>
4+
<AssemblyName>LanguageSupport</AssemblyName>
35
<TargetFramework>net472</TargetFramework>
46
<AssemblyTitle>LanguageSupport</AssemblyTitle>
57
<Product>LanguageSupport</Product>
8+
<Description>A Hollow Knight Mod</Description>
69
<Copyright>Copyright © 2021</Copyright>
710
<AssemblyVersion>2.0.0.0</AssemblyVersion>
811
<FileVersion>2.0.0.0</FileVersion>
912
<OutputPath>bin\$(Configuration)\</OutputPath>
1013
<LangVersion>latest</LangVersion>
1114
<Nullable>enable</Nullable>
12-
<HollowKnightRefs>../../../GOG/Hollow Knight 1.5 Modded/Hollow Knight_Data/Managed/</HollowKnightRefs>
15+
<HollowKnightRefs>E:/GOG/Hollow Knight 1.5 Modded/Hollow Knight_Data/Managed/</HollowKnightRefs>
16+
<ExportDir>E:/Github_Projects/__Exports/</ExportDir>
1317
</PropertyGroup>
1418
<Target Name="CopyMod" AfterTargets="PostBuildEvent">
15-
<Copy SourceFiles="$(TargetPath)" DestinationFolder="E:\GOG\Hollow Knight 1.5 Modded\Hollow Knight_Data\Managed\Mods\" SkipUnchangedFiles="true" />
16-
<Copy SourceFiles="$(TargetDir)$(TargetName).pdb" DestinationFolder="E:\GOG\Hollow Knight 1.5 Modded\Hollow Knight_Data\Managed\Mods\" SkipUnchangedFiles="true" />
19+
<RemoveDir Directories="$(ExportDir)/$(TargetName)/" />
20+
<MakeDir Directories="$(ExportDir)/$(TargetName)/" />
21+
<MakeDir Directories="$(ExportDir)/$(TargetName)/zip/" />
22+
<Copy SourceFiles="$(TargetPath);$(TargetDir)/$(TargetName).pdb" DestinationFolder="$(HollowKnightRefs)/Mods/" />
23+
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ExportDir)/$(TargetName)/" />
24+
<Copy SourceFiles="ReadMe.md;$(TargetPath);$(TargetDir)/$(TargetName).pdb" DestinationFolder="$(ExportDir)/$(TargetName)/zip/" />
25+
<ZipDirectory SourceDirectory="$(ExportDir)/$(TargetName)/zip/" DestinationFile="$(ExportDir)/$(TargetName)/$(TargetName).zip" />
26+
<RemoveDir Directories="$(ExportDir)/$(TargetName)/zip/" />
27+
28+
<GetFileHash Files="$(ExportDir)/$(TargetName)/$(TargetName).zip" Algorithm="SHA256">
29+
<Output TaskParameter="Items" ItemName="FilesWithHashes" />
30+
</GetFileHash>
31+
<WriteLinesToFile File="$(ExportDir)/$(TargetName)/SHA.txt" Lines="@(FilesWithHashes->'%(FileHash)')" Overwrite="true" Encoding="UTF-8"/>
1732
</Target>
1833
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
1934
<SignAssembly>true</SignAssembly>

0 commit comments

Comments
 (0)