SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

MSBuild on project files (4.0.0)

Last post 08-04-2011 8:22 AM by CarbonMan. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-03-2011 3:32 PM

    MSBuild on project files (4.0.0)

    I am a total noob so pls excuse the bleeding obvious...

    I have a project file that I modified outside of #D to include creating a zip file. I can run it from the command line with msBuild and it does what I expect. Within #D when I compile the project it builds the classes but doesn't seem to be doing the changes that I have made to the project file. The targets I have set are not recorded in the Output window even though the DefaultTargets was set to execute my custom target.

    Is it actually using the .csproj file to compile? I was under the impression if you restarted #D then it would use whatever changes you have specified.





    Filed under:
  • 08-03-2011 3:45 PM In reply to

    Re: MSBuild on project files (4.0.0)

    Yes, SharpDevelop is using the .csproj to compile. But we aren't using the DefaultTargets - SharpDevelop will run the "Build", "Rebuild" or "Clean" target.

    If you want to execute a custom target whenever the project it being built, you can override the AfterBuild target.

  • 08-04-2011 8:22 AM In reply to

    Re: MSBuild on project files (4.0.0)

     Great worked like a charm.

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this ( email address.