예제 #1
0
 public static void Compile(IFrameworkDetectionHelper frameworkDetectionHelper, FileSystemPath source, FileSystemPath dll,
                            string[] references, Version version)
 {
     // The 9.1 tests are using the test nuget packages to allow testing any framework,
     // but there's a bug in the JetBrains.Tests.Platform.NetFramework.Binaries.4.0 package
     // that means csc.exe doesn't work. Use the system 4.x compiler.
     // https://youtrack.jetbrains.com/issue/RSRP-437176
     CompileUtil.CompileCs(new SystemFrameworkLocationHelper(), source, dll, references, false,
                           false, version);
 }
        private string GetAssembly(string filename, string[] references)
        {
            var source   = GetTestDataFilePath2(filename);
            var assembly = source.ChangeExtension("dll");

            CompileUtil.CompileCs(
                PlatformManager,
                source,
                assembly,
                references,
                false,
                false,
                new Version(_framework.Version.Major, _framework.Version.Minor));

            return(assembly.Name);
        }