Example #1
0
        public void RewriteFrameworkDlls45()
        {
            var options   = new Options(this.TestContext);
            var framework = @".NetFramework\v4.5";

            options.ContractFramework = framework;
            var dllpath           = FrameworkBinariesToRewritePath + framework;
            var extrareferencedir = options.MakeAbsolute(TestDriver.ReferenceDirRoot);

            options.LibPaths.Add(extrareferencedir);
            options.BuildFramework = options.MakeAbsolute(dllpath);
            options.FoxtrotOptions = options.FoxtrotOptions + " /verbose:4";
            options.UseContractReferenceAssemblies = false;
            if (File.Exists(options.MakeAbsolute(Path.Combine(dllpath, options.SourceFile))))
            {
                TestDriver.RewriteBinary(options, dllpath);
            }
        }