djpnewton / busdog

busdog is a filter driver for MS Windows (XP and above) to sniff USB traffic.
180 stars 38 forks source link

Need to build with .NET ver 3.5 #20

Open manasabi opened 9 years ago

manasabi commented 9 years ago

Hi @djpnewton,

Thanks for your help before with building the busdog from MSVS2013. I am facing one more issue:

I need to build busdog.exe for windows XP(32bit) running .NET version 3.5. I am using the new build.ps1 script to do that. But, somehow build.ps1 always picks up .NET version 4.0 from my system and I don't know from where it picks up this version.

So, wanted to see if I need to change something in the script or do I need to change something in my visual studio config files to make sure that it always uses .NET framework 3.5 for building.

Could you please help me with this ? Appreciate your help.

Thanks Manas

manasabi commented 9 years ago

Hi,

Just an update: I tried a few things to make busdog.exe compile for .Net version: 3.5: 1) Hard code the environment variables in build.ps1 to point to v3.5 2) Added ToolsVersion option with MSBuild: Exec { MSBuild ./filter/busdog.sln /t:clean /tv:3.5}

Both these methods are throwing following error: MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\workspace\busdog\filter\busdog.sln]

I tried a few more hacks but I am not able to make this work. But, I see that busdog.exe provided by you works perfectly with .NET 3.5 on XP. So, would really appreciate if you could let me know how you are compiling your busdog.exe to work with .Net version 3.5

Thanks! Manas