Coder Social home page Coder Social logo

konste / commonsolutiontargets Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 31 KB

Visual Studio extension to run actions before solution build

Home Page: https://visualstudiogallery.msdn.microsoft.com/76cb2b5a-0b3a-4b4b-9682-5abeadd48a2f

License: MIT License

C# 80.89% HTML 12.48% CSS 6.63%

commonsolutiontargets's People

Contributors

konste avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

commonsolutiontargets's Issues

Before build and afterbuild are executed immediately

I have after.solution.sln.targets with a beforeBuild and an afterBuild. Works fine if i use msbuild from the commandline.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" 
  xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="BeforeBuild">
  <Target Name="BeforeBuild">
    <Message Text="Initializing the Before BUILD" Importance="High"/>
    <!-- existing line, not part of answer -->
    <Exec Command="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -executionpolicy Unrestricted -command &quot;&amp; { .\PreBuild.ps1 } &quot;" LogStandardErrorAsError="True" ContinueOnError="False" />
  </Target>
  <Target Name="AfterBuild" AfterTargets="Build;Rebuild">
    <Message Text="Initializing the After BUILD" Importance="high"></Message>
    <Exec Command="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -executionpolicy Unrestricted -command &quot;&amp; { .\PostBuild.ps1 } &quot;" LogStandardErrorAsError="True" ContinueOnError="False" />
    <!-- We get here still before the build, not after, because this whole targets file is executed before the build. -->
  </Target>

  <!-- All four standard targets must be present, otherwise VS barfs. -->
  <Target Name="Build">
    <Message Text="Solution Build target" Importance="High"/>
  </Target>
  <Target Name="Rebuild">
    <Message Text="Solution Rebuild target" Importance="High"/>
  </Target>
  <Target Name="Clean">
  </Target>
  <Target Name="Publish">
  </Target>
</Project>

In VisualStudio with the extension loads both the Before and the Afterbuild before the build...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.