Skip to content

Commit

Permalink
Remove in-place editing support for templates
Browse files Browse the repository at this point in the history
It was never used anyway.
  • Loading branch information
kzu committed Sep 16, 2024
1 parent f8f731b commit 15e8f24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/Directory.targets
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<NoneWithoutCopyToOutputDirectory Include="@(None)" Exclude="@(None -> HasMetadata('CopyToOutputDirectory'))" />
<None Update="@(NoneWithoutCopyToOutputDirectory)" CopyToOutputDirectory="PreserveNewest" />
<EmbeddedResource Include="@(None -> WithMetadataValue('Extension', '.sbntxt'))" />
<None Update="@(None -> WithMetadataValue('Extension', '.sbntxt'))" Pack="true" />
<None Update="@(None -> WithMetadataValue('Extension', '.sbntxt'))" Pack="false" CopyToOutputDirectory="Never" />
</ItemGroup>

<ItemGroup Condition="'$(IsAnalyzer)' == 'true'">
Expand Down
6 changes: 0 additions & 6 deletions src/Shared/EmbeddedResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ public static byte[] GetBytes(string relativePath)
/// <exception cref="InvalidOperationException"></exception>
public static Stream GetStream(string relativePath)
{
#if DEBUG
var filePath = Path.Combine(baseDir, Path.GetFileName(relativePath));
if (File.Exists(filePath))
return File.OpenRead(filePath);
#endif

var baseName = Assembly.GetExecutingAssembly().GetName().Name;
var resourceName = relativePath
.TrimStart('.')
Expand Down

0 comments on commit 15e8f24

Please sign in to comment.