public DotNetStandard() { Sources = new List <BuildItem> (); OtherBuildItems = new List <BuildItem> (); SetProperty(CommonProperties, "DebugType", "full"); ItemGroupList.Add(Sources); }
public XamarinAndroidBindingProject(string debugConfigurationName = "Debug", string releaseConfigurationName = "Release") : base(debugConfigurationName, releaseConfigurationName) { SetProperty("MonoAndroidJavaPrefix", "Java"); SetProperty("MonoAndroidTransformPrefix", "Transforms"); Jars = new List <BuildItem> (); Transforms = new List <BuildItem> (); ItemGroupList.Add(Jars); ItemGroupList.Add(Transforms); EnumFields = EnumMethods = MetadataXml = "<metadata/>"; Transforms.Add(new AndroidItem.TransformFile("Transforms\\EnumFields.xml") { TextContent = () => EnumFields }); Transforms.Add(new AndroidItem.TransformFile("Transforms\\EnumMethods.xml") { TextContent = () => EnumMethods }); Transforms.Add(new AndroidItem.TransformFile("Transforms\\Metadata.xml") { TextContent = () => MetadataXml }); }
public XamarinAndroidBindingProject() { SetProperty("MonoAndroidJavaPrefix", "Java"); SetProperty("MonoAndroidTransformPrefix", "Transforms"); Jars = new List <BuildItem> (); Transforms = new List <BuildItem> (); ItemGroupList.Add(Jars); ItemGroupList.Add(Transforms); EnumFields = EnumMethods = MetadataXml = "<metadata/>"; Transforms.Add(new AndroidItem.TransformFile("Transforms\\EnumFields.xml") { TextContent = () => EnumFields }); Transforms.Add(new AndroidItem.TransformFile("Transforms\\EnumMethods.xml") { TextContent = () => EnumMethods }); Transforms.Add(new AndroidItem.TransformFile("Transforms\\Metadata.xml") { TextContent = () => MetadataXml }); }
protected XamarinAndroidCommonProject(string debugConfigurationName = "Debug", string releaseConfigurationName = "Release") : base(debugConfigurationName, releaseConfigurationName) { AndroidResources = new List <BuildItem> (); ItemGroupList.Add(AndroidResources); resourceDesigner = new BuildItem.Source(() => "Resources\\Resource.designer" + Language.DefaultDesignerExtension) { TextContent = () => string.Empty }; Sources.Add(resourceDesigner); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-mdpi\\Icon.png") { BinaryContent = () => icon_binary_mdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-hdpi\\Icon.png") { BinaryContent = () => icon_binary_hdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-xhdpi\\Icon.png") { BinaryContent = () => icon_binary_xhdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-xxhdpi\\Icon.png") { BinaryContent = () => icon_binary_xxhdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-xxxhdpi\\Icon.png") { BinaryContent = () => icon_binary_xxxhdpi }); //AndroidResources.Add (new AndroidItem.AndroidResource ("Resources\\drawable-nodpi\\Icon.png") { BinaryContent = () => icon_binary }); }
protected XamarinAndroidCommonProject() { AndroidResources = new List <BuildItem> (); ItemGroupList.Add(AndroidResources); Sources.Add(new BuildItem.Source(() => "Resources\\Resource.designer" + Language.DefaultExtension) { TextContent = () => string.Empty }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-mdpi\\Icon.png") { BinaryContent = () => icon_binary_mdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-hdpi\\Icon.png") { BinaryContent = () => icon_binary_hdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-xhdpi\\Icon.png") { BinaryContent = () => icon_binary_xhdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-xxhdpi\\Icon.png") { BinaryContent = () => icon_binary_xxhdpi }); AndroidResources.Add(new AndroidItem.AndroidResource("Resources\\drawable-xxxhdpi\\Icon.png") { BinaryContent = () => icon_binary_xxxhdpi }); //AndroidResources.Add (new AndroidItem.AndroidResource ("Resources\\drawable-nodpi\\Icon.png") { BinaryContent = () => icon_binary }); }
public DotNetStandard() { Sources = new List <BuildItem> (); OtherBuildItems = new List <BuildItem> (); SetProperty(CommonProperties, "DebugType", "full"); ItemGroupList.Add(Sources); Language = XamarinAndroidProjectLanguage.CSharp; }
public DotNetStandard() { ProjectName = "UnnamedProject"; Sources = new List <BuildItem> (); OtherBuildItems = new List <BuildItem> (); ItemGroupList.Add(Sources); ItemGroupList.Add(OtherBuildItems); Language = XamarinAndroidProjectLanguage.CSharp; }
protected DotNetXamarinProject(string debugConfigurationName = "Debug", string releaseConfigurationName = "Release") : base(debugConfigurationName, releaseConfigurationName) { ProjectName = "UnnamedProject"; Sources = new List <BuildItem> (); OtherBuildItems = new List <BuildItem> (); ItemGroupList.Add(References); ItemGroupList.Add(OtherBuildItems); ItemGroupList.Add(Sources); SetProperty(KnownProperties.Configuration, debugConfigurationName, "'$(Configuration)' == ''"); SetProperty("RootNamespace", () => RootNamespace ?? ProjectName); SetProperty("AssemblyName", () => AssemblyName ?? ProjectName); if (Builder.UseDotNet) { SetProperty("TargetFramework", "net5.0"); SetProperty("EnableDefaultItems", "false"); SetProperty("AppendTargetFrameworkToOutputPath", "false"); SetProperty("AppendRuntimeIdentifierToOutputPath", "false"); } else { AddReferences("System"); // default SetProperty("Platform", "AnyCPU", "'$(Platform)' == ''"); SetProperty("ErrorReport", "prompt"); SetProperty("WarningLevel", "4"); SetProperty("ConsolePause", "false"); SetProperty("BaseIntermediateOutputPath", "obj\\", " '$(BaseIntermediateOutputPath)' == '' "); SetProperty(DebugProperties, "DebugSymbols", "true"); SetProperty(DebugProperties, "DebugType", "full"); SetProperty(DebugProperties, "Optimize", "false"); SetProperty(DebugProperties, "DefineConstants", "DEBUG;"); SetProperty(ReleaseProperties, "Optimize", "true"); SetProperty(ReleaseProperties, "ErrorReport", "prompt"); SetProperty(ReleaseProperties, "WarningLevel", "4"); SetProperty(ReleaseProperties, "ConsolePause", "false"); } // These are always set, so the OutputPath and IntermediateOutputPath properties work SetProperty(DebugProperties, KnownProperties.OutputPath, Path.Combine("bin", debugConfigurationName)); SetProperty(DebugProperties, KnownProperties.IntermediateOutputPath, Path.Combine("obj", debugConfigurationName)); SetProperty(ReleaseProperties, KnownProperties.OutputPath, Path.Combine("bin", releaseConfigurationName)); SetProperty(ReleaseProperties, KnownProperties.IntermediateOutputPath, Path.Combine("obj", releaseConfigurationName)); Sources.Add(new BuildItem.Source(() => "Properties\\AssemblyInfo" + Language.DefaultExtension) { TextContent = () => ProcessSourceTemplate(AssemblyInfo ?? Language.DefaultAssemblyInfo) }); }
protected DotNetXamarinProject(string debugConfigurationName = "Debug", string releaseConfigurationName = "Release") : base(debugConfigurationName, releaseConfigurationName) { ProjectName = "UnnamedProject"; Sources = new List <BuildItem> (); OtherBuildItems = new List <BuildItem> (); ItemGroupList.Add(References); ItemGroupList.Add(OtherBuildItems); ItemGroupList.Add(Sources); AddReferences("System"); // default SetProperty(KnownProperties.Configuration, debugConfigurationName, "'$(Configuration)' == ''"); SetProperty("Platform", "AnyCPU", "'$(Platform)' == ''"); SetProperty("ErrorReport", "prompt"); SetProperty("WarningLevel", "4"); SetProperty("ConsolePause", "false"); SetProperty("RootNamespace", () => RootNamespace ?? ProjectName); SetProperty("AssemblyName", () => AssemblyName ?? ProjectName); SetProperty("BuildingInsideVisualStudio", "True"); SetProperty("BaseIntermediateOutputPath", "obj\\", " '$(BaseIntermediateOutputPath)' == '' "); SetProperty(DebugProperties, "DebugSymbols", "true"); SetProperty(DebugProperties, "DebugType", "full"); SetProperty(DebugProperties, "Optimize", "false"); SetProperty(DebugProperties, KnownProperties.OutputPath, Path.Combine("bin", debugConfigurationName)); SetProperty(DebugProperties, "DefineConstants", "DEBUG;"); SetProperty(DebugProperties, KnownProperties.IntermediateOutputPath, Path.Combine("obj", debugConfigurationName)); SetProperty(ReleaseProperties, "Optimize", "true"); SetProperty(ReleaseProperties, "ErrorReport", "prompt"); SetProperty(ReleaseProperties, "WarningLevel", "4"); SetProperty(ReleaseProperties, "ConsolePause", "false"); SetProperty(ReleaseProperties, KnownProperties.OutputPath, Path.Combine("bin", releaseConfigurationName)); SetProperty(ReleaseProperties, KnownProperties.IntermediateOutputPath, Path.Combine("obj", releaseConfigurationName)); Sources.Add(new BuildItem.Source(() => "Properties\\AssemblyInfo" + Language.DefaultExtension) { TextContent = () => ProcessSourceTemplate(AssemblyInfo ?? Language.DefaultAssemblyInfo) }); }