where can i find binary of wpf samples?  
Author Message
publicENEMY





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

i have downloaded wpf samples from microsoft site. there are hundreds of project available. problem is, none of them is compiled. and compiling every one of them is tedious. i suspect the samples in binary form are already in my hardisk(when i try to download the samples from local msdn). but where is it

Visual Studio 200831  
 
 
r0x0r





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

Binaries are not included. Compiling any of them only takes pressing F5 in Visual Studio / Blend.

 
 
publicENEMY





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

how long does it takes to load project, press f5, wait for it to build. multiply that with 100. any more smart answer
 
 
SerialSeb





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

how about, from a visual studio command line:

for /R "c:\pathToYourExamples" %projFile in (*.csproj) do msbuild %projFile

To build all projects. Replace by *.sln to build solutions.

Is it smart enough



 
 
kk302999





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

What if a user does not have Visual Studio 2005 + WPF extensions installed Then binaries are handy.

I wanted to view WPF samples here at work in a virtual machine, that way I did not have to modify my current working VS 2005.



 
 
SerialSeb





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

msbuild is part of the .net framework, the method i gave will work on any machine having .net 3 installed, nothing to do with visual studio.

 
 
kk302999





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

Very nice. If I had asked the original question, I would mark your reply as the answer.

Kevin



 
 
SerialSeb





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

Thanks :)

 
 
publicENEMY





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

marked then. i think ill go for simple batch script. still, this doesnt answer the q.

 

binaries saves a lot of time, hd space, trouble. its there, but buried deep down msdn. where is it


 
 
Wolf Schmidt - MSFT





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

I don't believe you are correct to assume that the binaries for WPF SDK samples are anywhere on MSDN, or in fact anywhere in the offline SDK.

Binaries without at least symbols would not be very useful to the SDK audience, and the symbols would take that saved HD space back again. Plus it's not necessarily just one binary. One binary per supported platform. So, potentially more HD space again.

You can browse source, and make the decision if it's even worth compiling based on the APIs it uses. Or grep source after installing the entire tree of sample source. Etc. Given choice between source and binary, I'd choose source. And if you had both source and binary+symbols, that really will start to add up as far as bits shipped/installed in the SDK, especially for samples that have necessary content components such as documents or sample media.

Online MSDN in particular frowns on us putting ANYTHING on the MSDN site that is not fundamentally a documentation page. You'll note that the "sample page" metaphor available in the offline for the WPF samples is not yet available if using the online version of .NET 3.0 docs. From a security standpoint, their reasoning is pretty sound, actually. ANYTHING that you get off a Microsoft Web site had better not be a trojan, worm, etc. If MSDN is in the business of serving individual SDK sample binaries, now they have thousands of individual binaries that are potential hacking targets whereby someone might selectively replace any one of them in some subfolder that is somehow left vulnerable. Including such binaries as might exist for SDKs where no one from Microsoft has done updates to them in years, because they are older technologies not as high on the SDK-writing radar. For these reasons, MSDN centralizes the samples distribution to large ZIP files.


 
 
SerialSeb





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

Plus there's the issue of signing each exe and dll in authenticode, plus the containing exe or zip... Which in itself, I'm told, is yet another proces :)

 
 
publicENEMY





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

what about directx. didn't they distribute it with binary samples
 
 
kk302999





PostPosted: Windows Presentation Foundation (WPF), where can i find binary of wpf samples? Top

Why didn't I get a kitchen sink with my SDK