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?