Search code examples
.netadd-inmaf

.NET AddIn Framework, ignore folder (.svn)


Is it possible to make the AddInStore of the AddIn Framework (MAF) to ignore a certain directory?

In my case the addin store is versioned by subversion but when the pipeline is rebuild I get the error that the ".svn" folder in AddIns does not contain a valid addin:

Could not find a valid add-in in the directory [..]\AddIns\.svn.


Solution

  • I am now doing it this way:

    List<String> warnings = new List<String>(AddInStore.Rebuild(appPath));
    
    // remove warnings about .svn directories
    for (int i = warnings.Count - 1; i >= 0; i--)
    {
        if (warnings[i].Contains(".svn")) warnings.RemoveAt(i);
    }
    

    Any suggestions?