Skip to content

Commit

Permalink
Development: add publish.bat file (for publishing projects)
Browse files Browse the repository at this point in the history
General: update .gitignore file
All: fix project file & add "netcore3.1 any" publish profile
  • Loading branch information
Daerius-rs committed Aug 24, 2021
1 parent 19a07c7 commit 9eb6e65
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ publish/
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
# *.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
Expand Down
7 changes: 7 additions & 0 deletions CopyPackage/CopyPackage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<AssemblyName>CopyPackage</AssemblyName>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<Product>CopyPackage</Product>
<Version>1.0.1</Version>
<Description>CLI Tool for copying packages (targeted to MSBuild)</Description>
<Authors>Dmitry Ponomarev</Authors>
<Company>RISStudio</Company>
<Copyright>Copyright (c) RISStudio, 2020</Copyright>
<StartupObject>CopyPackage.Program</StartupObject>
</PropertyGroup>

<PropertyGroup>
Expand Down
14 changes: 14 additions & 0 deletions CopyPackage/Properties/PublishProfiles/netcore3.1 any.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\netcoreapp3.1\publish\any-FDD</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>netcoreapp3.1</TargetFramework>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions Publish.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@ECHO OFF

ECHO any section

dotnet publish "CopyPackage\CopyPackage.csproj" -c "Release" -p:PublishProfile="netcore3.1 any.pubxml"
dotnet publish "PublishPackages\PublishPackages.csproj" -c "Release" -p:PublishProfile="netcore3.1 any.pubxml"

14 changes: 14 additions & 0 deletions PublishPackages/Properties/PublishProfiles/netcore3.1 any.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\netcoreapp3.1\publish\any-FDD</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>netcoreapp3.1</TargetFramework>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions PublishPackages/PublishPackages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<AssemblyName>PublishPackages</AssemblyName>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<Product>PublishPackages</Product>
<Version>1.0.1</Version>
<Description>CLI Tool for publishing packages (targeted to MSBuild)</Description>
<Authors>Dmitry Ponomarev</Authors>
<Company>RISStudio</Company>
<Copyright>Copyright (c) RISStudio, 2020</Copyright>
<StartupObject>PublishPackages.Program</StartupObject>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 9eb6e65

Please sign in to comment.