From 36a9911a3a20d90528b01364f44369db7f64f01e Mon Sep 17 00:00:00 2001 From: ihm-tswow Date: Thu, 14 Dec 2023 23:41:36 +0100 Subject: [PATCH] Improve publish script --- .gitignore | 4 +++- ProjectZ.csproj | 20 +++++++++++++++++++ .../PublishProfiles/FolderProfile.pubxml | 2 +- .../PublishProfiles/FolderProfile.pubxml.user | 10 ---------- publish.bat | 1 + 5 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 Properties/PublishProfiles/FolderProfile.pubxml.user create mode 100644 publish.bat diff --git a/.gitignore b/.gitignore index 4f0da88..c404407 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ bin obj .vs -Content/bin \ No newline at end of file +Content/bin +Publish +Properties/PublishProfiles/FolderProfile.pubxml.user \ No newline at end of file diff --git a/ProjectZ.csproj b/ProjectZ.csproj index 76cc31a..1ac2bc4 100644 --- a/ProjectZ.csproj +++ b/ProjectZ.csproj @@ -32,6 +32,11 @@ + + + + PreserveNewest + ProjectZ.Program @@ -44,4 +49,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Properties/PublishProfiles/FolderProfile.pubxml b/Properties/PublishProfiles/FolderProfile.pubxml index f14ccad..49d3733 100644 --- a/Properties/PublishProfiles/FolderProfile.pubxml +++ b/Properties/PublishProfiles/FolderProfile.pubxml @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU - bin\Release\net6.0-windows\publish\ + Publish FileSystem <_TargetId>Folder net6.0-windows diff --git a/Properties/PublishProfiles/FolderProfile.pubxml.user b/Properties/PublishProfiles/FolderProfile.pubxml.user deleted file mode 100644 index ebb8cc6..0000000 --- a/Properties/PublishProfiles/FolderProfile.pubxml.user +++ /dev/null @@ -1,10 +0,0 @@ - - - - - True|2023-12-14T16:20:38.8832609Z; - - - \ No newline at end of file diff --git a/publish.bat b/publish.bat new file mode 100644 index 0000000..0e4299f --- /dev/null +++ b/publish.bat @@ -0,0 +1 @@ +dotnet publish -c Release -p:"PublishProfile=FolderProfile" \ No newline at end of file