Reputation: 3435
I have an app for Android that I'm porting to Windows Phone 8 now.
The assets folder lies apart of code in my folder sturucture. In order to include it into Android build, I use <linkedResources>
.
Is there anything similar for Windows Phone 8 and MSVC? Having examined examples, I found they all include assets directly into project folder structure in Visual Studio. Can I avoid copying assets into MSVC project folder?
BTW, my MSVC 2013 does not have drop box on Add
button:
Upvotes: 1
Views: 1134
Reputation: 31606
This an old Silverlight trick when there was common entity
code files which needed to be shared between the app and the service where the library could not be brought in due to the differences in .Net.
The trick is to include as a link into the project. Here is how
Add
then Existing Item...
or shift
alt
A
.Add
button select the drop down arrow.Add as link
to add the image(s) as a link into the folder.
That will give access to the file as if the file was actually within the project's Asset
folder, but the file physically resides elsewhere.
Upvotes: 1