How can we help you today? How can we help you today?

SmartAssembly.MSBuild.Tasks.Build - console output?

Always wondered how to get the task to do console output of informations and errors?

I am using the following for the build in my .csproj file (a slight variation of the recomended)
<!-- {sa} protection step -->
  <UsingTask TaskName="SmartAssembly.MSBuild.Tasks.Build" AssemblyName="SmartAssembly.MSBuild.Tasks, Version=5.0.0.0" />
  <Target Name="BeforeBuild" Condition=" '$(Configuration)' == 'Release' ">
    <CreateProperty Value="true">
      <Output TaskParameter="Value" PropertyName="RunSmartAssembly" />
    </CreateProperty>
  </Target>
  <Target Name="AfterCompile" Condition=" '$(RunSmartAssembly)' != '' ">
    <Copy SourceFiles=".\obj\Release\$(TargetFileName)" DestinationFiles=".\obj\Release\$(TargetName).temp$(TargetExt)" />
    <SmartAssembly.MSBuild.Tasks.Build ProjectFile="$(SolutionDir)Build\$(TargetName).{sa}proj" OverwriteAssembly="True" />
  </Target>
  <!-- {sa} protection step -->

Are there any properties to force console output? Its quite annoying when i have to fire up the GUI app just to see an error or use the .com version, both do not always agree on the error either.
It would really be helpful to have the build task give the information.
Uniwares_AS
0

Comments

2 comments

  • Alex D
    Interesting. I use the MSBuild task a lot, and it's always given identical output to the command line tool for me. It works by running the command line tool.

    Could you let me know exactly which details are missing?

    Cheers,
    Alex D
    0
  • Uniwares_AS
    I don't get any output inside Visual Studio from this build task ever. Only the infamous "error 1". Yet when I use the {smartassembly}.com instead of the build task everything works fine.

    Just for reference: using Windows XP, latest hotfixes, SPs and VS2008.
    Uniwares_AS
    0

Add comment

Please sign in to leave a comment.