Skip to content

Commit 64f7fca

Browse files
committed
Ignore .vs folder in template.json
More recent versions of MonoDevelop create a .vs folder. If a .template.config folder is created for the solution, so this folder is next to the .vs folder, then when you try to create a new project from the template you will get a sharing violation error: Could not create template. Id='MyTemplate.Test' CreateFailed Error while processing file /.vs/Test/xs/sqlite3/db.lock Sharing violation on path Test/.vs/Test/xs/sqlite3/db.lock To workaround this the template.json file now includes a sources section that excludes the .vs directory and all its files. Fixes #4
1 parent 38e8f64 commit 64f7fca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/MonoDevelop.TemplateCreator/ConfigurationFiles/template.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
"sourceName": "${SourceName}",
1717
"guids": [
1818
],
19+
"sources": [
20+
{
21+
"modifiers": [
22+
{
23+
"exclude": [
24+
".vs/**/*"
25+
]
26+
}
27+
]
28+
}
29+
],
1930
"primaryOutputs": [
2031
]
2132
}

0 commit comments

Comments
 (0)