Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Paul D. Murphy

Better Lemonade Mousetraps

Third Major Bug

This *release* version of VS2005 is dog and I just can't take it anymore. Here is the 3rd bug I've found (I never found any at all in Everett)...

  1. Create a test project
  2. add an app.config file to the root of the project
  3. add another app.config file called reallyImportantFile.config to the root of the project
  4. set reallyImportantFile.config to BuildAction=Content and CopyToOutputDirectory=Copy Always
  5. compile the project and peek out /bin/debug (it is there)
  6. write a unit test that checks to see if the file exists Assert.IsTrue(File.Exists(fileName))
  7. watch the test fail BECAUSE TEAM SYSTEM DOESN'T MOVE THE 'COPY ALWAYS' FILES INTO THE OUT DIRECTORY!
----
Update: 11/14/05 4:21pm EST
You can work around this bug by manually including the files via the .testrunconfig deployment tab.
Published Monday, November 14, 2005 8:15 PM by pmurphy

Comments

No Comments
Anonymous comments are disabled