Skip to content

Commit 83275fc

Browse files
committed
Fixing project generation.
1 parent 78b2988 commit 83275fc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

source/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,14 @@ $(BUILD_DIR)$(PROJECT_DIR)%.zip: $(PROJECT_DIR)%.zip
540540
@rsync -av $(subst $(BUILD_DIR),,$@) $@
541541

542542
$(PROJECT_DIR)%.zip: $(PROJECT_DIR)%/*/Program.cs | $(PROJECT_DIR)/%/*/*.cs
543-
@(printf '<Project Sdk="Microsoft.NET.Sdk">\n <PropertyGroup>\n <OutputType>Exe</OutputType>\n <TargetFramework>net8.0</TargetFramework>\n <RollForward>LatestMajor</RollForward>\n \n</PropertyGroup>\n</Project>') > $(dir $<)$(notdir $(patsubst %/,%,$(dir $<))).csproj
543+
@(printf '<Project Sdk="Microsoft.NET.Sdk">\n <PropertyGroup>\n <OutputType>Exe</OutputType>\n <TargetFramework>net8.0</TargetFramework>\n <RollForward>LatestMajor</RollForward>\n </PropertyGroup>\n</Project>') > $(dir $<)$(notdir $(patsubst %/,%,$(dir $<))).csproj
544544
# We now zip the folder:
545-
@cd $(dir $(patsubst %/,%,$(dir $<))) && 7z a $(notdir $@) $(notdir $*) -xr\!.vs -xr\!.directory > nul && mv $(notdir $@) ../
545+
cd $(dir $<)../../ && 7z -bso0 -bsp0 a $(notdir $@) $(notdir $*) -xr\!.vs -xr\!.directory
546+
# && mv $(notdir $@) ../
546547
# We compress (silently, thanks to the -bso0 -bsp0 options) the folder containing the csproj and the code
547-
# Finally, we clean the files:c
548-
@rm $(dir $<)$(notdir $(patsubst %/,%,$(dir $<))).csproj
548+
# Finally, we clean the files:
549+
# (deactivated)
550+
# @rm $(dir $<)$(notdir $(patsubst %/,%,$(dir $<))).csproj
549551

550552
# -------------------------------
551553
# Book files

0 commit comments

Comments
 (0)