Scott,
My experience with the SOURCES converter has not been good. Note: even
taking just slightly modified versions of Win7 samples (for instance
changing the name of the driver) has yielded misery in getting a working
project. And my luck with doing it from scratch is about as bad.
For almost anything I ship, I have a makefile.inc stuff so that I
produce a directory that can be copied to install media and will work.
Things like that drive the conversion tool nuts, including having it crash
multiple times on my system.
This may be because I have so little demand for the VS based
environment, but my success rate with getting projects to build at all is
abysmal (unless I am taking a standard sample from Microsodt, and not trying
to really change it). I’ve read the NT Insider article on using the
environment and the Microsoft doc’s multiple times, and I still fail more
often than not on getting a useable project. Even when I get a project that
builds, it seems fairly often I get a bizarre failure on trying to start
(not run) the code analysis tools on a project I created. At some point you
just say to heck with it, and go back to making a living. I am the tools
fanatic, I do spend the time to make Lint work and clean up most Lint
complaint before shipping a driver, but I find the VS environment has a
barrier that for me is still very high.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Scott Noone
Sent: Wednesday, November 20, 2013 11:54 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Latest recommended tool chain
Practically speaking…As Peter mentioned we currently have a project that
requires Server 2003 through Server 2008 R2. The code includes a KMDF
driver, a user mode DLL, and two user mode applications. All code is written
to build in the Win7 WDK and thus uses SAL v1 annotations.
I’m religious about using the new Code Analysis and SDV, so about once a
week I “check in” with the new build tools. Being a fairly straightforward
project, the SOURCES converter in Visual Studio almost does a perfect
conversion (it misses an include path in one application for some reason and
doesn’t properly set a dependency of the other app on the DLL). I wouldn’t
*ship* these project files, but it was enough to get me to the new
environment within about 10 minutes. From there, SAL v1 is still supported
in VS2013 so I get the benefits of Code Analysis in addition to SDV.
If you have a larger project and the automated conversion isn’t applicable,
the conversion can be more time consuming of course. However, once you’re
done you get to periodically run the driver through the new Code Analysis
and SDV. This doesn’t mean you have to *ship* (or even run) the resulting
binaries of course, just continue to use the Win 7 environment for your real
development and testing.
This then becomes a judgment call: once your build files are stable, is the
one time pain of doing a conversion *just* to get the new tools (i.e. not to
*ship* with) not worth it? I think it’s completely worth it (and about as
painful as what you have to do to get, say, Lint running on your driver),
but maybe I’m a bit biased as we’ve had the time to play with this for a
while and I’ve found a few real bugs in doing this.
-scott
OSR
“Don Burn” wrote in message news:xxxxx@ntdev…
Before this thread dies completely to go back to closer to the original
topic. If Microsoft provided a tool(s) that would handle the conversion
from Win7 to VS based environments including SAL and projects, that worked
reliably I would check my efforts with the VS tools for all projects. If
Microsoft provided a tool(s) that would allow downgrade to Win7 based WDK
projects, I would move all my development to current WDK.
It is interesting that back when we had DDC’s and Microsoft solicited input
from developers, I had some long discussions with the guys then tasked to
support a VS based WDK. All the developers repeatedly said, that the one
clear message they heard was the requirement to upgrade/downgrade between
SOURCES based WDK’s to VS based WDK’s. Somewhere in the intervening years
that requirement was dropped.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer