Using Postsharp Without Installation

Questions about integration in Visual Studio, MSBuild or other IDEs or build tools.

Using Postsharp Without Installation

Postby FoundersReserve on Tue Jun 17, 2008 12:24 pm

Hi Folks,

while looking through the documentation and this forum, i figured out, that it should be possible to use postsharp without prior installation by simply using the command-line utitlity.

this is exactly what i need! unfortunatelly, i'm no pro on msbuild and such things so i simply tried to invoke the postsharp.exe like this:
Code: Select all
C:\application\References> .\PostSharp.exe .\Default.psproj ..\Data\Datasource\bin\Debug\Datasource.dll /p:Output=TestPS.dll /p:IntermediateDirectory=. /p:CleanIntermediate=false /V


as a result i get:
Code: Select all
error PS0002: The configuration file is missing. Are you sure this software was properly installed?


what is wrong? of course postsharp is not installed on my system. in my references folder i packed the following postsharp componentes:
  • PostSharp-1.0.targets
  • PostSharp-1.0.version
  • PostSharp.Core.dll
  • PostSharp.Core.XmlSerializers.dll
  • PostSharp.exe
  • PostSharp.exe.config
  • PostSharp.Laos.dll
  • PostSharp.Laos.psplugin
  • PostSharp.MSBuild.dll
  • PostSharp.Public.dll
  • PostSharp.targets


any hint appreciated! thank!

alex
FoundersReserve
 
Posts: 10
Joined: Wed Jan 23, 2008 5:34 pm
First Name: Alex
Last Name: Köhler

Re: Using Postsharp Without Installation

Postby gfraiteur on Tue Jun 17, 2008 1:36 pm

You are missing the file PostSharp-Platform.config.
Gael Fraiteur, project leader
gfraiteur
Site Admin
 
Posts: 816
Joined: Tue Dec 18, 2007 3:09 pm
First Name: Gael
Last Name: Fraiteur
Company: Coding Glove


Return to Integration with IDE and Build Scripts