Esempio n. 1
0
        public CSharpImports()
        {
            AddTargets(new Target(
                           Platform.anycpu,
                           DevEnv.vs2017,
                           Optimization.Debug | Optimization.Release,
                           OutputType.Dll,
                           Blob.NoBlob,
                           BuildSystem.MSBuild,
                           DotNetFramework.v4_6_1));

            RootPath = @"[project.SharpmakeCsPath]\projects\[project.Name]";

            // This Path will be used to get all SourceFiles in this Folder and all subFolders
            SourceRootPath = @"[project.SharpmakeCsPath]\codebase\[project.Name]";
            AssemblyName   = "the other name";

            PreImportProjects.Insert(0, new ImportProject
            {
                Project   = "PRE [project.Name]-[conf.ProjectFileName]",
                Condition = "PRE condition"
            });

            ImportProjects.Insert(0, new ImportProject
            {
                Project   = "POST [project.Name]-[conf.ProjectFileName]",
                Condition = "POST condition"
            });
        }
        public CSharpImports()
        {
            AddTargets(
                new Target(
                    Platform.anycpu,
                    DevEnv.vs2019,
                    Optimization.Debug | Optimization.Release,
                    OutputType.Dll,
                    Blob.NoBlob,
                    BuildSystem.MSBuild,
                    DotNetFramework.v4_7_2
                    )
                );

            RootPath = @"[project.SharpmakeCsPath]\projects\[project.Name]";

            // This Path will be used to get all SourceFiles in this Folder and all subFolders
            SourceRootPath = @"[project.SharpmakeCsPath]\codebase\[project.Name]";
            AssemblyName   = "the other name";

            PreImportProjects.Insert(
                0,
                new ImportProject
            {
                Project   = @"..\..\[project.Name]-pre.props",   // path is relative to the csproj output location
                Condition = "'$(Configuration)' == 'Debug'"
            }
                );

            ImportProjects.Insert(
                0,
                new ImportProject
            {
                Project   = @"..\..\[project.Name]-post.props",   // path is relative to the csproj output location
                Condition = "'$(Configuration)' == 'Release'"
            }
                );
        }