resource only library

K

Konrad Neitzel

Hi!

Hi, at http://msdn.microsoft.com/en-us/library/ms753303.aspx in the
"Creating a Font Resource Library" section Microsoft talks about a
"resource-only library" and shows a XAML fragment. How can I make a
new resource only library? Is there a complete example of a
resource only library somewhere?

Hmm. I do not have an example of a resource only library. But it is a simple
library project that just do not include any code.

And the code given was mainly a MSBuild project file part and an example,
how it could be used from XAML.

If I should create such a library, I would simply create a standard library
and remove all content that is not required. But the csproj file is a simply
XML file, so you could even edit it manually in case Visual Studio is not
supporting such a project completly. But at the moment I would expect, that
you should get a good start if you remove everything and just add stuff as
Content. (You can set the properties of all files and tell Visual Studio
what to do when building it. And for MSBuild it is the entry inside
ItemGroup. Something that should be compiled is like <Compile
Include="FileToCompile.cs" /> and Content is like <Content
Include="FileToInclude" />. But I never tried to remove all stuff from a
project and checked the project for no longer needed crap. So maybe it could
be nice to edit the File through a editor, too. But on the other hand: Does
it hurt if something else is also part of the result? I think I wouldn't
care to much about that as long as all is inside, that must be inside!)

The MSBuild should be a good starting point to read about all the
possibilities:
http://msdn.microsoft.com/en-us/library/ms171452.aspx

With kind regards,

Konrad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top