Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

VS 2017 and VS SDK
fsdschmidt
#1 Posted : Wednesday, June 7, 2017 9:50:21 AM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
Hi!

we build and tested our solution successfully with VS 2015. Now, we switched to VS 2017 and have some trouble with VS SDK tools. We suspect MSBuild could not find the CreatePkgDef.exe, because if we start the tool manually from command line all is fine. Do you have any ideas?

Creating intermediate PkgDef file.
Using "CreatePkgDef" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\VSSDK\Microsoft.VsSDK.Build.Tasks.dll".
Can not find the tools for VS SDK.
/out="obj\Debug\HoloDeck.Client.CommonLibPackage.latest.pkgdef" /codebase /i="..."
The "CreatePkgDef" task failed unexpectedly.
System.InvalidOperationException: Der Prozess kann nicht gestartet werden, da ein Dateiname nicht angegeben wurde. (Cannot start process because a file name has not been provided.)
bei System.Diagnostics.Process.Start()
bei Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
bei Microsoft.VsSDK.Build.Tasks.CreatePkgDef.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
bei Microsoft.Build.Utilities.ToolTask.Execute()
bei Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
bei Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

Thanks,
Micha
Remco
#2 Posted : Wednesday, June 7, 2017 11:34:08 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Micha,

Check that there aren't any files being implicitly referenced on a relative path through the build system. If there is a tool that is required by the build tasks that is stored near your project/solution structure, you might need to specifically include it for NCrunch. See here for more details - http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies.

I've had previous situations where the 'Copy referenced assemblies to workspace' was required for VS SDK projects. You might want to turn this on to see if this helps. Compatibility mode is also worth trying.

Finally, it's my experience that in most cases, the VS SDK tools don't need to be used in your test environment. You may get better results just by turning them off. Adding a Condition="'$(NCrunch)' != '1'" to the MSBuild <Import> tags responsible for referencing the SDK should do the trick.
fsdschmidt
#3 Posted : Friday, June 9, 2017 8:09:10 AM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
Hi Remco,

thanks for your fast support. Disabling VS SDK tools did the trick for us too. Now all is fine with VS 2017 and VS SDK.

Micha
1 user thanked fsdschmidt for this useful post.
Remco on 6/9/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download