0
Views
4
Comments
same resource, different content per server
Question
Hi,

another Resources-question.
I need to provide an foobar.xml (with that specific name ;) ) in my application and it should be accesible.
so it woulb be like this:
prod.somename.nl/app/foobar.xml
accpt.somename.nl/app/foobar.xml

however, the contents of the 2 file should be different in prod and accpt!

How can I achieve this without having to worry about overriding the contents with deploying?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
This doesn't seem possible when including directly it as a resource. Any reason why you want it to be included as a resource, instead of e.g. get it from the file system or read it from a db?
2016-04-21 20-09-55
J.
 
MVP
I need to provide it to a 3rd party...

but perrhaps I can convince them to use something.aspx :)

2023-12-07 07-51-40
Remco Dekkinga
 
MVP
Is it possible not to include it as a resource, but to generate it after publication?
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
The only other thing I can think of is include both with a different name, and select one or the other depending on whether you're running in production mode.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.