Skip to content

Commit

Permalink
Build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Mar 13, 2019
1 parent 551974e commit c45359d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(grunt) {
files: [
{
expand: true,
cwd: projectRoot + 'bin/Release/',
cwd: projectRoot + 'bin/Release/net472/',
src: [
'Skybrud.Essentials.dll',
'Skybrud.Essentials.xml',
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-nuget');
grunt.loadNpmTasks('grunt-zip');

grunt.registerTask('release', ['clean', 'copy', 'zip', 'umbracoPackage', 'nugetpack', 'clean']);
grunt.registerTask('release', ['clean', 'copy', 'zip', 'clean']);

grunt.registerTask('default', ['release']);

Expand Down
5 changes: 5 additions & 0 deletions release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
cd src/Skybrud.Umbraco.GridData
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe" /t:pack /p:Configuration=Release /p:PackageOutputPath=../../releases/nuget
cd ../../
grunt
10 changes: 7 additions & 3 deletions src/Skybrud.Umbraco.GridData/Skybrud.Umbraco.GridData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
<ItemGroup>
<Reference Include="System.Web" />
<PackageReference Include="Skybrud.Essentials" Version="1.1.8" />
<PackageReference Include="UmbracoCms.Core" Version="8.0.0" />
<PackageReference Include="UmbracoCms.Web" Version="8.0.0" />
<PackageReference Include="UmbracoCms.Core" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="UmbracoCms.Web" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="&quot;$(SolutionDir)build\UpdateAssemblyInfoJson.exe&quot; &quot;$(ProjectPath)&quot; &quot;$(TargetPath)&quot;" />
<Exec Command="&quot;$(ProjectDir)..\build\UpdateAssemblyInfoJson.exe&quot; &quot;$(ProjectPath)&quot; &quot;$(TargetPath)&quot;" />
</Target>

</Project>

0 comments on commit c45359d

Please sign in to comment.