Esempio n. 1
0
        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'"
            }
                );
        }