diff --git a/src/strategies/csharp-project.ts b/src/strategies/csharp-project.ts index c0e182a..890db76 100644 --- a/src/strategies/csharp-project.ts +++ b/src/strategies/csharp-project.ts @@ -30,7 +30,7 @@ export class CSharpProject implements IFileManager { if (fileExists(filePath)) { const fileContents = readFileSync(filePath, "utf8"); - const $ = cheerio.load(fileContents, { xmlMode: true }); + const $ = cheerio.load(fileContents, { xmlMode: true, decodeEntities: false }); const version = $("Project > PropertyGroup > Version").text(); if (version) { @@ -47,7 +47,7 @@ export class CSharpProject implements IFileManager { public write(fileState: FileState, newVersion: string) { const fileContents = readFileSync(fileState.path, "utf8"); - const $ = cheerio.load(fileContents, { xmlMode: true }); + const $ = cheerio.load(fileContents, { xmlMode: true, decodeEntities: false }); $("Project > PropertyGroup > Version").text(newVersion);