Resource compilation for C# project
-
04-06-2021 - |
Pregunta
I have a C# project with a great deal of image files in resources. The compilation these resources takes about 30 seconds each time I build the project.
I am wondering if it's possible to configure Visual Studio 2010 to prevent resource compilation if there was no changes in them.
Thanks.
UPDATED
Thanks a lot for help. The problem has been solved as follows. I changed persistence property from «Linked at compile time» to «Embedded in .resx» for all my resources.
Solución
Create resource file explicitly and embedded into your assembly. Moee detail , kindly refer the below link Creating Resource Files
Otros consejos
In Visual Studio:
- Select all images
- Open properties Windows (F4)
- set
Build Action
to Content - set
Copy to Output Directory
as Copy if newer
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow