Skip to content

Commit

Permalink
Ignore .vs folder in template.json
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mrward committed Jun 2, 2018
1 parent 38e8f64 commit 64f7fca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/MonoDevelop.TemplateCreator/ConfigurationFiles/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
"sourceName": "${SourceName}",
"guids": [
],
"sources": [
{
"modifiers": [
{
"exclude": [
".vs/**/*"
]
}
]
}
],
"primaryOutputs": [
]
}

0 comments on commit 64f7fca

Please sign in to comment.