Jump to content
  • Advertisement
Sign in to follow this  
montify

C# is loading Outdated File

This topic is 758 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have a curious Problem...

I try to read a File with:

StreamReader r = new StreamReader("Content//spriteShader.fx");

It's a simple HLSL Shader File.

So i write "return float4(1,0,1,1);" in the .fx file. I compile, run, everything is output well in the Console.

Now i change the .fx file to "return float4(1,1,1,1);" i save and run the Program but the Output is still the old one "return float4(1,0,1,1);"!

I look in the Build Folder an here i see ne newer File!

So my Question is: why Streamreader is loading the Outdated File when in the Build folder is always the newer file ( this work!).

The Solution is a Class Library not a Windows Application if this helps. Anybody have an idea?

EDIT: when i make a space in the .cs file or another change and save the .cs File again, the newer file is loading!

BuildAction: Compile Copy: Do not copy ( when i switch to Copy Always the problem is the same )

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!