Skip to content

Conversation

@TIHan
Copy link
Contributor

@TIHan TIHan commented Jun 25, 2021

This adds a single test to WorkspaceTests that tests whether or not the script will update properly when a DLL file that it is referencing changes.

When first writing the test, it was failing because FCS was returning back cached/stale check file results even after the incremental build was re-created when one of its references changed. Clearing the items associated with the project in the cache fixed this issue.

What caused the issue in the first place, wasn't necessarily due to not clearing any caches, but because I made a change where the first file was returning DateTime.MinValue instead of the defaultTimeStamp which gets set to DateTime.UtcNow when an incremental build gets created. I made an additional change to return the defaultTimeStamp.

@auduchinok
Copy link
Member

@TIHan Could you please add an FCS test too?

@TIHan
Copy link
Contributor Author

TIHan commented Jun 28, 2021

Yes, I will try to add one.

@TIHan TIHan merged commit 76911eb into dotnet:main Jun 29, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
…ted incremental build (dotnet#11731)

* Added script referencing dll test in WorkspaceTests, but failing

* Clear check file caches associated with a re-created incremental build

* Minor comment update

* Minor comment update

* Forgot to delete dll in test

* Remove ignore

* Using defaultTimeStamp instead of DateTime.MinValue

* Added FCS test

* Minor update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants