Skip to content

Commit

Permalink
Publish using MSBuild.exe (dotnet/msbuild#3986)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxnbl committed Mar 3, 2021
1 parent e70f426 commit 34d0c8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/alxnbl.OneNoteMdExporter/alxnbl.OneNoteMdExporter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win7-x86</RuntimeIdentifier>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
8 changes: 8 additions & 0 deletions src/alxnbl.OneNoteMdExporter/publish.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set version=%1

REM DotNet build do not support COM REFERENCES : https://github.com/dotnet/msbuild/issues/3986
REM dotnet publish --configuration Release --self-contained true -r win7-x64 /p:Version="%version%"

"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" alxnbl.OneNoteMdExporter.csproj -property:Configuration=Release -property:Version="%version%"

tar.exe -a -c -f "OneNoteMdExporter.v%version%".zip -C bin\Release\netcoreapp3.1\win7-x86\ *

0 comments on commit 34d0c8a

Please sign in to comment.