Single file compile in VS

Unlike other project types, driver projects don’t let me compile a single module.
What am I missing?

Hi,

What errors are you getting?

I’m able to build a KMDF project with just a Driver.c file that has DriverEntry and AddDevice. I started from the KMDF template, removed Device.c and Queue.c, and commented out the call to KMDFDriver1CreateDevice in KMDFDriver1EvtDeviceAdd.

Sorry. Did not make myself clear.
I can build a proj containing just one source file, no issue there.

But if I have 200 files in my project, and header file error is causing compile error in all 200 of them.
I’d like to compile just one file to see if have fixed the issue.

Menu: Build -> Compile is grayed out.

I think he is referring to selecting the compile option from the menu to
compile a single source file. With driver projects, you can only build, not
compile.

On Fri, May 29, 2015 at 4:24 PM, wrote:

> Hi,
>
> What errors are you getting?
>
> I’m able to build a KMDF project with just a Driver.c file that has
> DriverEntry and AddDevice. I started from the KMDF template, removed
> Device.c and Queue.c, and commented out the call to KMDFDriver1CreateDevice
> in KMDFDriver1EvtDeviceAdd.
>
> —
> 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
>


Jamey Kirby
Disrupting the establishment since 1964

This is a personal email account and as such, emails are not subject to
archiving. Nothing else really matters.

Which wdk version?

d

Bent from my phone


From: Jamey Kirbymailto:xxxxx
Sent: ?5/?30/?2015 4:16 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: Re: [ntdev] Single file compile in VS

I think he is referring to selecting the compile option from the menu to compile a single source file. With driver projects, you can only build, not compile.
[https://mailfoogae.appspot.com/t?sender=aa2lyYnkuamFtZXlAZ21haWwuY29t&type=zerocontent&guid=578c3615-96dc-4b07-b028-307a9f2cc0a2]?

On Fri, May 29, 2015 at 4:24 PM, > wrote:
Hi,

What errors are you getting?

I’m able to build a KMDF project with just a Driver.c file that has DriverEntry and AddDevice. I started from the KMDF template, removed Device.c and Queue.c, and commented out the call to KMDFDriver1CreateDevice in KMDFDriver1EvtDeviceAdd.


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


Jamey Kirby
Disrupting the establishment since 1964

This is a personal email account and as such, emails are not subject to archiving. Nothing else really matters.
— 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</mailto:xxxxx></mailto:xxxxx>

Did you create a project from ‘sources’?

xxxxx@yahoo.com wrote:

Unlike other project types, driver projects don’t let me compile a single module.
What am I missing?

What do you mean by “module”? You can compile a single file, or you can
compile a single project, or you can compile the entire solution. The
word “module” is not meaningful in Visual Studio.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

IIRC you can right click on one of the source files in the VS solution explorer and choose “Compile”

-p

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Friday, May 29, 2015 2:39 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Single file compile in VS

Sorry. Did not make myself clear.
I can build a proj containing just one source file, no issue there.

But if I have 200 files in my project, and header file error is causing compile error in all 200 of them.
I’d like to compile just one file to see if have fixed the issue.

Menu: Build -> Compile is grayed out.


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

Peter,

I’ve seen this on a lot of projects, and the right click approach is
greyed out when the Build -> Compile is greyed out. A lot of the samples in
the Win8.1 WDK display this property. For a simple example open the RamDisk
sample and try to compile just one file.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Peter Wieland
Sent: Saturday, May 30, 2015 7:23 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Single file compile in VS

IIRC you can right click on one of the source files in the VS solution
explorer and choose “Compile”

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Friday, May 29, 2015 2:39 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Single file compile in VS

Sorry. Did not make myself clear.
I can build a proj containing just one source file, no issue there.

But if I have 200 files in my project, and header file error is causing
compile error in all 200 of them.
I’d like to compile just one file to see if have fixed the issue.

Menu: Build -> Compile is grayed out.


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


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

I suspect this happens for projects created by Nmake2msbuild. These projects are a bit malformed. For example, if you try to create a folder (“filter”) in such a project and move files there, the files will disappear from project view.

Iirc this has nothing to do with conversion, it was a bug in the wdk props file. But that was in 8.0 and my memory is hazy

d

Bent from my phone


From: xxxxx@broadcom.commailto:xxxxx
Sent: ?5/?30/?2015 5:33 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] Single file compile in VS

I suspect this happens for projects created by Nmake2msbuild. These projects are a bit malformed. For example, if you try to create a folder (“filter”) in such a project and move files there, the files will disappear from project view.


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</mailto:xxxxx></mailto:xxxxx>