Silverlight, MSBuild, VS and some shared files. How?
Posted
by asgerhallas
on Stack Overflow
See other posts from Stack Overflow
or by asgerhallas
Published on 2010-02-04T17:07:28Z
Indexed on
2010/03/17
9:21 UTC
Read the original article
Hit count: 182
I have a VS project used for my .NET WCF host with some simple DTOs in it. I then have another project targeted for Silverlight with links to the files from the .NET-project.
What's the best way automate the build, so that all files from the .NET project are automatically built to a Silverlight assembly too?
I have tried the following in the Silverlight-library project:
<Compile Include="..\KSLog.Core.Services.Shared\**\*.cs" Exclude="..\KSLog.Core.Services.Shared\Properties\AssemblyInfo.cs"></Compile>
But when I do a build or a rebuild of the solution new files in the .NET project are not automatically added to the Silverlight project, and if I have deleted files in the .NET project, I get a compile error, saying the file is not found in the Silverlight project.
Can I make it automatically update it self in some way? Or am I doing it all wrong?
© Stack Overflow or respective owner