Fix a project syntax error
This commit is contained in:
parent
70fd8fa0c7
commit
d3f0132c97
2 changed files with 3 additions and 3 deletions
Binary file not shown.
|
@ -907,7 +907,7 @@ public abstract class VSGenericTarget : ITarget
|
|||
if (subType != SubType.Code && subType != SubType.Settings && subType != SubType.Designer
|
||||
&& subType != SubType.CodeBehind)
|
||||
{
|
||||
ps.WriteLine(" <EmbeddedResource Include=\"{0}\">",
|
||||
ps.WriteLine(" <EmbeddedResource Update=\"{0}\">",
|
||||
file.Substring(0, file.LastIndexOf('.')) + ".resx");
|
||||
ps.WriteLine(" <DependentUpon>{0}</DependentUpon>", Path.GetFileName(file));
|
||||
ps.WriteLine(" <SubType>Designer</SubType>");
|
||||
|
@ -963,7 +963,7 @@ public abstract class VSGenericTarget : ITarget
|
|||
if (subType == SubType.Settings)
|
||||
{
|
||||
ps.Write(" <{0} ", project.Files.GetBuildAction(filePath));
|
||||
ps.WriteLine("Include=\"{0}\">", file);
|
||||
ps.WriteLine("Update=\"{0}\">", file);
|
||||
var fileName = Path.GetFileName(filePath);
|
||||
if (project.Files.GetBuildAction(filePath) == BuildAction.None)
|
||||
{
|
||||
|
@ -1002,7 +1002,7 @@ public abstract class VSGenericTarget : ITarget
|
|||
|
||||
// be sure to write out the path with backslashes so VS recognizes
|
||||
// the file properly.
|
||||
ps.WriteLine("Include=\"{0}\">", file);
|
||||
ps.WriteLine("Update=\"{0}\">", file);
|
||||
|
||||
var last_period_index = file.LastIndexOf('.');
|
||||
var short_file_name = last_period_index >= 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue