Fix the paths at which CompileContext locates resgen outputs.
Fixes #1136
This commit is contained in:
parent
98b37fdd5e
commit
1d25d2574d
15 changed files with 568 additions and 4 deletions
18
TestAssets/TestProjects/TestProjectWithResource/Program.cs
Normal file
18
TestAssets/TestProjects/TestProjectWithResource/Program.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Resources;
|
||||
using System.Reflection;
|
||||
|
||||
namespace TestProjectWithResource
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var rm = new ResourceManager(
|
||||
"TestProjectWithResource.Strings",
|
||||
typeof(Program).GetTypeInfo().Assembly);
|
||||
|
||||
Console.WriteLine(rm.GetString("hello"));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue