13 lines
429 B
JavaScript
13 lines
429 B
JavaScript
module.exports = function makeSolutionPatch(windowsConfig) {
|
|
|
|
const solutionInsert = `Project("{${windowsConfig.projectGUID.toUpperCase()}}") = "${windowsConfig.projectName}", "${windowsConfig.relativeProjPath}", "{${windowsConfig.pathGUID.toUpperCase()}}"
|
|
EndProject
|
|
`;
|
|
|
|
return {
|
|
pattern: 'Global',
|
|
patch: solutionInsert,
|
|
unpatch: new RegExp(`Project.+${windowsConfig.projectName}.+\\s+EndProject\\s+`),
|
|
};
|
|
};
|