# Visual Studio plugin odd behavior on Gradle 3.3

**URL:** <https://discuss.gradle.org/t/visual-studio-plugin-odd-behavior-on-gradle-3-3/21028>\
**Category:** Help/Discuss\
**Created:** [January 5, 2017, 10:36pm UTC](https://discuss.gradle.org/t/visual-studio-plugin-odd-behavior-on-gradle-3-3/21028 "2017-01-05T22:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![twistedworkshops](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@twistedworkshops](https://discuss.gradle.org/u/twistedworkshops)\
**Post date:** [January 5, 2017, 10:36pm UTC](https://discuss.gradle.org/t/visual-studio-plugin-odd-behavior-on-gradle-3-3/21028/1 "2017-01-05T22:36:29Z")

</div>

I believe something has been broken in Gradle 3.3 in regards to project generation.

Whenever I run Visual Studio generation tasks on my multiproject, they are not marked as Up-To-Date even if they were already run and generated the vcxproj and sln files and nothing else has changed. The problem is that the files are not removed after re-running the task but actually are appended, leading to broken projects if I run the project generation task more than once (for example after running 3 times I get each line in vcxproj duplicated 3 times as well)

Could someone verify if this is actually a bug or am I doing something strange that would cause it to break in gradle 3.3 ?

Edit: I have checked it on 3.2.1 - it has exactly the same problem. Then I checked 2.14.1 and it works fine. Rerunning the task just re-generates the files without appending the same contents over and over again. So the question is - is vs plugin bugged in 3.X and should I file a bug report at github or is there something odd in my usage?

---

<div class="post-metadata">

**Author:** ![Daniel\_L](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daniel_l/32/6420_2.png) [@Daniel\_L](https://discuss.gradle.org/u/Daniel_L)\
**Post date:** [January 13, 2017, 1:45pm UTC](https://discuss.gradle.org/t/visual-studio-plugin-odd-behavior-on-gradle-3-3/21028/2 "2017-01-13T13:45:11Z")

</div>

Thanks Adrian for reporting this. Could you help us a bit and try your scenario on Gradle 3.0 as well as 3.1? That would be really helpful for us.

---

<div class="post-metadata">

**Author:** ![twistedworkshops](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@twistedworkshops](https://discuss.gradle.org/u/twistedworkshops)\
**Post date:** [January 30, 2017, 11:12pm UTC](https://discuss.gradle.org/t/visual-studio-plugin-odd-behavior-on-gradle-3-3/21028/3 "2017-01-30T23:12:17Z")

</div>

@Daniel_L Sorry about a really late reply, I totaly forgot about it since I wasn’t doing anything related lately.

It is a problem on 3.1. I think it started misbehaving since initial 3.X release. Also what I see now is that there is an issue that has been in your github issues page for quite some time: [https://github.com/gradle/gradle/issues/790](https://github.com/gradle/gradle/issues/790) so my bad I missed it.

What I can tell you is that I can verify that this simply does not work as expected and as described in the linked bug.

---

<div class="post-metadata">

**Author:** ![Daniel\_L](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daniel_l/32/6420_2.png) [@Daniel\_L](https://discuss.gradle.org/u/Daniel_L)\
**Post date:** [March 3, 2017, 9:35pm UTC](https://discuss.gradle.org/t/visual-studio-plugin-odd-behavior-on-gradle-3-3/21028/4 "2017-03-03T21:35:16Z")

</div>

Thanks I will see if I can find where this was introduces.
