Fordítió powershell script írása több projekt esetén

0 votes
asked May 8, 2016 in IRF tantárgy by je993 (35 points)  

Heló!

A GrapeVine-ban vannak a REST-hez szükséges fileok és a PreformanceCounterek a GrapeVine.Example-ben pedig a Program.cs, megpróbáltam átírni a példában kapott build.ps1-et úgy, hogy a projektemre működjön, de végül eredmény nélkül kilép.

Az alábbi kóddal próbálkoztam

$NET_CSC = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"

if ( ! (Test-Path $NET_CSC) )
{
    Write-Out ".NET Framework 4.5's C# compiler is needed to build the application!"
    Write-Out "File not foud: $NET_CSC"
    exit
}

# compile the application 
& $NET_CSC /out:GrapeVine.exe GrapeVine/Client/RESTClient.cs GrapeVine/Client/RESTRequest.cs GrapeVine/Client/RESTResponse.cs GrapeVine/Porperties/AssemblyInfo.cs GrapeVine/Server/Config.cs GrapeVine/Server/RESTAttributes.cs GrapeVine/Server/RESTCluster.cs GrapeVine/Server/RESTResource.cs GrapeVine/Server/RESTServer.cs GrapeVine/Util/ContentType.cs GrapeVine/Util/EventLogger.cs GrapeVine/Util/Exceptions.cs GrapeVine/Util/ExportedExtensions.cs GrapeVine/Util/HttpMethod.cs GrapeVine/Util/InternalExtensions.cs GrapeVine/Util/Responder.cs GrapeVine/Constants.cs GrapeVine.Example/Properties/AssemblyInfo.cs GrapeVine.Example/Program.cs 

Előre is köszönöm a segítséget!

1 Answer

0 votes
answered May 8, 2016 by gardazsoltbarni (36 points)  

Szerintem próbálkozz a solution buildelésével, az csak egy sor, és az útmutatóban le van írva, hogyan kell.

...