There are 3 projects in my solution, one WPFApplication and 2 Class Library Projects When I create a solution, I get an error below ..
properties {$ base_dir = resol-path} $ Build_dir = "$ base_dir \ build" $ buildartifacts_dir = "$ build_dir \ BuildArtifacts" $ sln_file = "$ base_dir \ Hello.sln" } Task Defaults -Complete Scheduled Works {Write - Host "Cleanup Solution" - Exclamation Green Removal - Item-Force -Resource $ buildartifacts_dir -ErrorAction SilentlyContinue} Task Init -depends clean {w} rite-host "BuildArtifacts directory to" -afgroundcolr Green New items $ buildartifacts_dir -itemType directory} function compile -No init {write-host "compiling - -" $ sln_file -ForegroundColor Green Exec {msbuild $ sln_file "/ p: Autdir = $ Build_artifacts_dir "/ p: Configuration = Release / V: cool}} I get the following error - - What am I doing wrong?
C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (2868 9): Error MSB3023: No destination specified for copy Please "destination files" Or "destinationfolder" [D: \ Nusrofe \ GrokPSake2 \ ClassLibrary1 \ ClassLibrary1.csproj]
C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (3471) 9): Error MSB4044: The "FindUnderPath" function was not given a value for the required parameter "path". [D: \ Nusrofe \ GrokPSake2 \ ClassLibrary1 \ ClassLibrary1.csproj]
C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (2868 9): Error MSB3023: Copy No destination is specified for Ple ase supply either "DestinationFiles" or "DestinationFolder" [D: \ Nusrofe \ GrokPSake2 \ ClassLibrary2 \ ClassLibrary2.csproj]
C: \ Windows \ Microsoft.NET \ Framework \ V4.0.30319 \ Microsoft.Common.targets (3471 9): Error MSB4044: The "FindUnderPath" function was not given a value for the required parameter "path". [D: \ Nusrofe \ GrokPSake2 \ ClassLibrary2 \ ClassLibrary2.csproj]
C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (3471 9): Error MSB4044: FindUnderPath "The work was not given any value for the required parameter" path ". [D: \ Nusrofe \ GrokPSake2 \ WpfApp \ WpfApp.csproj]
Build 2. Ps1: Error executing command: msbuild $ sln_file "/ p: Autdin = Thanksgiving
Text ">It seems that in your
compiletask, you have a stray underscore in your$ buildartifacts_dirvariable. MSBuild probably does not know what to do because basically you're giving it an empty space for OutDir.
Comments
Post a Comment