@@ -7,7 +7,7 @@ cd "SolutionLogicalNameExample"
77Rename-Item - Path .\src - NewName Declarations && Remove-Item .gitignore - Force
88
99# Find the .cdsproj file and read it as XML
10- $csproj = Get-ChildItem - Path . - Filter * .cdsproj | Select-Object - First 1
10+ $csproj = Get-ChildItem - Path . - Filter * .cdsproj | Select-Object - First 1https: // github.com / TALXIS / tools - devkit - templates / tree / master
1111[xml ]$xml = Get-Content $csproj.FullName - Raw
1212
1313# Rename the solution component folder in .cdsproj and
@@ -18,6 +18,9 @@ $propertyGroup.SolutionRootPath = 'Declarations'
1818$newElement = $xml.CreateElement (' DefaultProjectTypeGuid' , $xml.Project.NamespaceURI )
1919$newElement.InnerText = ' FAE04EC0-301F-11D3-BF4B-00C04F79EFBC'
2020$propertyGroup.AppendChild ($newElement ) > $null
21+ $newElement2 = $xml.CreateElement (' ProjectTypeGuids' , $xml.Project.NamespaceURI )
22+ $newElement2.InnerText = ' FAE04EC0-301F-11D3-BF4B-00C04F79EFBC'
23+ $propertyGroup.AppendChild ($newElement2 ) > $null
2124
2225# Override the default Publish target to prevent errors when running publish on .sln file
2326$targetElement = $xml.CreateElement (' Target' , $xml.Project.NamespaceURI )
@@ -51,4 +54,4 @@ Move-Item -Path "SolutionLogicalNameExample\*" -Destination . -Force
5154Remove-Item - Path " SolutionLogicalNameExample" - Force
5255
5356# The new project is automatically added to the Visual Studio solution by the templating engine
54- # This would be an alternative: dotnet sln ../../ add SolutionLogicalNameExample.cdsproj"
57+ # This would be an alternative: dotnet sln ../../ add SolutionLogicalNameExample.cdsproj"
0 commit comments