Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Silvan Egger 28 posts 199 karma points
    Jul 05, 2016 @ 06:58
    Silvan Egger
    0

    uSync and TFS - Source Control doesn't recognize changes from uSync

    Hi togheter

    uSync is awesome! I really like to work with it. But I encountered a problem when working with Visual Studio 2015 and Team Foundation Server Source Control.

    My solution is running and i add a Document Type with a Template. So uSync creates these files

    • uSync/data/DocumentType/myDocumentType/myDocumentType.config
    • uSync/data/Template/myTemplate/myTemplate.config

    and Umbraco creates this file

    • Views/myTemplate.cshtml

    Now the problem is, Visual Studio doesn't get that these files are created or changed. So it doesn't list them under pending changes. When i check-in my files, my new Template and Document Type don't get checked-in and thats a Problem.

    Is there a way to tell Visual Studio to always track created, removed or changed files in specific folders of the project?

    Yeah, i could always manually include the files to project, but this could cause errors when I miss a file or when someone works with this solution and doesn't know he has to include them manually.

    Versions:

    • Visual Studio 2015 Enterprise
    • Team Foundation Server from Microsoft
    • Umbraco v7.4.3
    • uSync v3.1.4.740
    • uSync.Core v5.3.5.740

    Greets, Silvan

  • Kevin Jump 944 posts 5094 karma points mvp c-trib
    Jul 05, 2016 @ 07:31
    Kevin Jump
    1

    Hi

    I don't use TFS so maybe someone with a bit more background can flesh this out, but i think you add the uSync folder via the source control explorer ?

    https://msdn.microsoft.com/en-us/library/ms181392(v=vs.100).aspx

  • Silvan Egger 28 posts 199 karma points
    Jul 05, 2016 @ 07:33
    Silvan Egger
    0

    Ok, but thanks anyway.

    Yeah i also posted my question on Stack Overflow. Maybe they can help me out.

    http://stackoverflow.com/questions/38197673/visual-studio-and-tfs-detect-changes-outside-visual-studio

  • John Bergman 169 posts 510 karma points
    Apr 21, 2017 @ 23:27
    John Bergman
    0

    I know this is late to the game, but I found this solution that seems to work pretty well.

    First, manually edit the project file to remove all of the explicit usync references (In my case, I also did it for the media folder).

    Add this line instead

    <Content Include="uSync\data\**" />
    

    Then when you are ready to check in your changes, you can reconcile it to help you past adding/deleting/identifying changes.

    http://stackoverflow.com/questions/5899213/how-to-have-tfs-2010-detect-changes-done-to-files-outside-of-visual-studio/22860674#22860674

Please Sign in or register to post replies

Write your reply to:

Draft