Browse Source

Fixed project template options.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@106 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 21 years ago
parent
commit
2bb8881add
  1. 8
      data/templates/project/CSharp/ConsoleProject.xpt
  2. 12
      data/templates/project/CSharp/ControlLibrary.xpt
  3. 9
      data/templates/project/CSharp/Direct3DProject.xpt
  4. 11
      data/templates/project/CSharp/FormsProject.xpt
  5. 11
      data/templates/project/CSharp/Library.xpt
  6. 12
      data/templates/project/CSharp/Service.xpt
  7. 5
      data/templates/project/VBNet/ConsoleProject.xpt
  8. 12
      data/templates/project/VBNet/ControlLibrary.xpt
  9. 5
      data/templates/project/VBNet/Direct3DProject.xpt
  10. 14
      data/templates/project/VBNet/FormsProject.xpt
  11. 9
      data/templates/project/VBNet/Library.xpt
  12. 13
      data/templates/project/VBNet/Service.xpt
  13. 50
      src/AddIns/BackendBindings/CSharpBinding/Project/Resources/Signing.xfrm
  14. 4
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/CSharpLanguageBinding.cs
  15. 3
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/Signing.cs
  16. 2
      src/AddIns/BackendBindings/VBNetBinding/Project/Resources/Signing.xfrm
  17. 3
      src/AddIns/BackendBindings/VBNetBinding/Project/Src/OptionPanels/Signing.cs
  18. 4
      src/AddIns/BackendBindings/VBNetBinding/Project/Src/VBNetLanguageBinding.cs
  19. 2
      src/Libraries/NRefactory/Project/Src/Lexer/AbstractLexer.cs
  20. 2
      src/Libraries/NRefactory/Project/Src/Lexer/CSharp/Lexer.cs
  21. 7
      src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs
  22. 1
      src/Main/Base/Project/Src/Gui/XmlForms/Lib/DefaultObjectCreator.cs
  23. 18
      src/Main/Base/Project/Src/Project/AbstractProject.cs
  24. 6
      src/Main/Core/Project/Src/Services/MessageService/MessageService.cs

8
data/templates/project/CSharp/ConsoleProject.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "06/10/2001"
lastModified = "02/01/2003">
lastModified = "23/04/2005">
<!-- Template Header -->
<TemplateConfiguration>
@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
<Files>
<File name="Main.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections.Generic;
namespace ${StandardNamespace}
{
@ -66,11 +67,6 @@ using System.Runtime.CompilerServices; @@ -66,11 +67,6 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
]]></File>
</Files>
</Project>

12
data/templates/project/CSharp/ControlLibrary.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "06/10/2001"
lastModified = "02/01/2003">
lastModified = "23/04/2005">
<!-- Template Header -->
<TemplateConfiguration>
@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Library" PauseConsoleOutput = "False" />
<Options OutputType = "Library" />
<References>
<Reference type="Gac" refto="System" />
@ -36,9 +36,10 @@ @@ -36,9 +36,10 @@
<Files>
<File name="UserControl1.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
namespace ${StandardNamespace}
{
@ -104,11 +105,6 @@ using System.Runtime.CompilerServices; @@ -104,11 +105,6 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
]]></File>
</Files>
</Project>

9
data/templates/project/CSharp/Direct3DProject.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "22/01/2003"
lastModified = "20/10/2004">
lastModified = "23/04/2005">
<!-- Template Header -->
<TemplateConfiguration>
@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
<Files>
<File name="MainClass.cs"><![CDATA[using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
@ -197,11 +197,6 @@ using System.Runtime.CompilerServices; @@ -197,11 +197,6 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
]]></File>
</Files>
</Project>

11
data/templates/project/CSharp/FormsProject.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "06/10/2001"
lastModified = "02/01/2003">
lastModified = "23/04/2005">
<!-- Template Header -->
<TemplateConfiguration>
@ -23,8 +23,7 @@ @@ -23,8 +23,7 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "WinExe" PauseConsoleOutput = "False" />
<Options OutputType = "WinExe" />
<References>
<Reference type="Gac" refto="System" />
@ -37,6 +36,7 @@ @@ -37,6 +36,7 @@
<Files>
<File name="MainForm.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
@ -112,11 +112,6 @@ using System.Runtime.CompilerServices; @@ -112,11 +112,6 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
]]></File>
</Files>
</Project>

11
data/templates/project/CSharp/Library.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "02/01/2003"
lastModified = "02/01/2003">
lastModified = "23/04/2005">
<!-- Template Header -->
<TemplateConfiguration>
@ -24,11 +24,13 @@ @@ -24,11 +24,13 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Library" PauseConsoleOutput = "False" />
<Options OutputType = "Library" />
<Files>
<File name="MyClass.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections.Generic;
namespace ${StandardNamespace}
{
/// <summary>
@ -67,11 +69,6 @@ using System.Runtime.CompilerServices; @@ -67,11 +69,6 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
]]></File>
</Files>
</Project>

12
data/templates/project/CSharp/Service.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "02/01/2003"
lastModified = "02/01/2003">
lastModified = "23/04/2005">
<!-- Template Header -->
<TemplateConfiguration>
@ -24,13 +24,12 @@ @@ -24,13 +24,12 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Library" PauseConsoleOutput = "False" />
<Options />
<Files>
<File name="MyService.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
@ -137,11 +136,6 @@ using System.Runtime.CompilerServices; @@ -137,11 +136,6 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
]]></File>
</Files>
</Project>

5
data/templates/project/VBNet/ConsoleProject.xpt

@ -25,8 +25,7 @@ @@ -25,8 +25,7 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Exe" PauseConsoleOutput = "True"/>
<Options />
<References>
<Reference type="Gac" refto="System" />
@ -39,6 +38,8 @@ @@ -39,6 +38,8 @@
<File name="Main.vb">
<![CDATA[${StandardHeader.VBNET}
Imports System
Imports System.Collections.Generic
Module Main
Sub Main()
Console.WriteLine("Hello World!")

12
data/templates/project/VBNet/ControlLibrary.xpt

@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Library" PauseConsoleOutput = "False"/>
<Options OutputType = "Library" />
<References>
@ -37,12 +37,12 @@ @@ -37,12 +37,12 @@
<Files>
<File name="UserControl1.vb"><![CDATA[${StandardHeader.VBNET}
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports System.ComponentModel
Namespace ${StandardNamespace}
Public Class UserControl1
Inherits System.Windows.Forms.UserControl
@ -98,11 +98,7 @@ Imports System.Runtime.CompilerServices @@ -98,11 +98,7 @@ Imports System.Runtime.CompilerServices
<assembly: AssemblyVersion("1.0.*")>
' The following attributes specify the key for the sign of your assembly. See the
' .NET Framework documentation for more information about signing.
' This is not required, if you don't want signing let these attributes like they're.
<assembly: AssemblyDelaySign(false)>
<assembly: AssemblyKeyFile("")>]]></File>
]]></File>
</Files>
</Project>
</Combine>

5
data/templates/project/VBNet/Direct3DProject.xpt

@ -181,11 +181,6 @@ Imports System.Runtime.CompilerServices @@ -181,11 +181,6 @@ Imports System.Runtime.CompilerServices
<assembly: AssemblyVersion("1.0.*")>
' The following attributes specify the key for the sign of your assembly. See the
' .NET Framework documentation for more information about signing.
' This is not required, if you don't want signing let these attributes like they're.
<assembly: AssemblyDelaySign(false)>
<assembly: AssemblyKeyFile("")>]]>
</File>
</Files>
</Project>

14
data/templates/project/VBNet/FormsProject.xpt

@ -24,8 +24,7 @@ @@ -24,8 +24,7 @@
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "WinExe" PauseConsoleOutput = "False"/>
<Options OutputType = "WinExe" />
<References>
<Reference type="Gac" refto="System" />
@ -40,6 +39,7 @@ @@ -40,6 +39,7 @@
<File name="MainForm.vb">
<![CDATA[${StandardHeader.VBNET}
Imports System
Imports System.Collections.Generic
Imports System.Drawing
Imports System.Windows.Forms
@ -49,8 +49,7 @@ Namespace ${StandardNamespace} @@ -49,8 +49,7 @@ Namespace ${StandardNamespace}
Inherits System.Windows.Forms.Form
Public Shared Sub Main
Dim fMainForm As New MainForm
fMainForm.ShowDialog()
Application.Run(New MainForm())
End Sub
Public Sub New()
@ -109,12 +108,7 @@ Imports System.Runtime.CompilerServices @@ -109,12 +108,7 @@ Imports System.Runtime.CompilerServices
' numbers with the '*' character (the default):
<assembly: AssemblyVersion("1.0.*")>
' The following attributes specify the key for the sign of your assembly. See the
' .NET Framework documentation for more information about signing.
' This is not required, if you don't want signing let these attributes like they're.
<assembly: AssemblyDelaySign(false)>
<assembly: AssemblyKeyFile("")>]]></File>
]]></File>
</Files>
</Project>
</Combine>

9
data/templates/project/VBNet/Library.xpt

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Library" PauseConsoleOutput = "False"/>
<Options OutputType = "Library" />
<References>
<Reference type="Gac" refto="System" />
@ -68,12 +68,7 @@ Imports System.Runtime.CompilerServices @@ -68,12 +68,7 @@ Imports System.Runtime.CompilerServices
' numbers with the '*' character (the default):
<assembly: AssemblyVersion("1.0.*")>
' The following attributes specify the key for the sign of your assembly. See the
' .NET Framework documentation for more information about signing.
' This is not required, if you don't want signing let these attributes like they're.
<assembly: AssemblyDelaySign(false)>
<assembly: AssemblyKeyFile("")>]]></File>
]]></File>
</Files>
</Project>
</Combine>

13
data/templates/project/VBNet/Service.xpt

@ -22,9 +22,7 @@ @@ -22,9 +22,7 @@
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options Target = "Library" PauseConsoleOutput = "False"/>
<Options />
<References>
<Reference type="Gac" refto="System" />
@ -37,7 +35,7 @@ @@ -37,7 +35,7 @@
<Files>
<File name="MyService.vb"><![CDATA[${StandardHeader.VBNET}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Diagnostics
@ -129,12 +127,7 @@ Imports System.Runtime.CompilerServices @@ -129,12 +127,7 @@ Imports System.Runtime.CompilerServices
' numbers with the '*' character (the default):
<assembly: AssemblyVersion("1.0.*")>
' The following attributes specify the key for the sign of your assembly. See the
' .NET Framework documentation for more information about signing.
' This is not required, if you don't want signing let these attributes like they're.
<assembly: AssemblyDelaySign(false)>
<assembly: AssemblyKeyFile("")>]]></File>
]]></File>
</Files>
</Project>
</Combine>

50
src/AddIns/BackendBindings/CSharpBinding/Project/Resources/Signing.xfrm

@ -1,82 +1,91 @@ @@ -1,82 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<Components version="1.0">
<System.Windows.Forms.UserControl>
<Name value="XmlUserControl1" />
<DockPadding value="" />
<ClientSize value="{Width=392, Height=312}" />
<Controls>
<System.Windows.Forms.GroupBox>
<Name value="groupBox1" />
<TabIndex value="1" />
<Name value="signingGroupBox" />
<Location value="{X=8,Y=28}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=368, Height=196}" />
<Text value="Key Selection" />
<Size value="{Width=368, Height=196}" />
<TabIndex value="1" />
<Anchor value="Top, Left, Right" />
<Controls>
<System.Windows.Forms.CheckBox>
<Name value="delaySignOnlyCheckBox" />
<Location value="{X=4,Y=169}" />
<Size value="{Width=356, Height=24}" />
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" />
<Text value="Dela&amp;y Sign only" />
<Anchor value="Top, Left, Right" />
<TabIndex value="8" />
<Size value="{Width=356, Height=24}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.ComboBox>
<Name value="containerComboBox" />
<Anchor value="Top, Left, Right" />
<TabIndex value="7" />
<Location value="{X=108,Y=133}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=252, Height=21}" />
<FormattingEnabled value="True" />
<Location value="{X=108,Y=133}" />
</System.Windows.Forms.ComboBox>
<System.Windows.Forms.Label>
<Name value="label2" />
<Location value="{X=8,Y=128}" />
<Text value="&amp;Container:" />
<TextAlign value="MiddleRight" />
<Size value="{Width=100, Height=23}" />
<TabIndex value="6" />
<Location value="{X=8,Y=128}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.ComboBox>
<Name value="providerNameComboBox" />
<Anchor value="Top, Left, Right" />
<TabIndex value="5" />
<Location value="{X=108,Y=105}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=252, Height=21}" />
<FormattingEnabled value="True" />
<Location value="{X=108,Y=105}" />
</System.Windows.Forms.ComboBox>
<System.Windows.Forms.Label>
<Name value="label1" />
<Location value="{X=8,Y=100}" />
<Text value="Provider &amp;name:" />
<TextAlign value="MiddleRight" />
<Size value="{Width=100, Height=23}" />
<TabIndex value="4" />
<Location value="{X=8,Y=100}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.RadioButton>
<Name value="useKeyProviderRadioButton" />
<Location value="{X=4,Y=77}" />
<Size value="{Width=356, Height=24}" />
<Text value="Use this key &amp;provider:" />
<Size value="{Width=356, Height=24}" />
<Anchor value="Top, Left, Right" />
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" />
<TabIndex value="3" />
</System.Windows.Forms.RadioButton>
<System.Windows.Forms.ComboBox>
<Name value="keyFileComboBox" />
<Anchor value="Top, Left, Right" />
<TabIndex value="1" />
<Location value="{X=20,Y=49}" />
<Anchor value="Top, Left, Right" />
<Size value="{Width=184, Height=21}" />
<FormattingEnabled value="True" />
<Location value="{X=20,Y=49}" />
</System.Windows.Forms.ComboBox>
<System.Windows.Forms.Button>
<Name value="changePasswordButton" />
<Location value="{X=212,Y=49}" />
<Size value="{Width=148, Height=21}" />
<Text value="Change Pass&amp;word..." />
<Size value="{Width=148, Height=21}" />
<Anchor value="Top, Right" />
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" />
<TabIndex value="2" />
</System.Windows.Forms.Button>
<System.Windows.Forms.RadioButton>
<Name value="useKeyFileRadioButton" />
<Location value="{X=4,Y=25}" />
<Size value="{Width=356, Height=24}" />
<Text value="Use a key &amp;file:" />
<Size value="{Width=356, Height=24}" />
<Anchor value="Top, Left, Right" />
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" />
<TabIndex value="0" />
</System.Windows.Forms.RadioButton>
</Controls>
@ -84,10 +93,11 @@ @@ -84,10 +93,11 @@
<System.Windows.Forms.CheckBox>
<Name value="signAssemblyCheckBox" />
<Location value="{X=8,Y=4}" />
<Size value="{Width=376, Height=24}" />
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" />
<Text value="Sign the &amp;assembly" />
<Anchor value="Top, Left, Right" />
<TabIndex value="0" />
<Size value="{Width=376, Height=24}" />
<Anchor value="Top, Left, Right" />
</System.Windows.Forms.CheckBox>
</Controls>
</System.Windows.Forms.UserControl>

4
src/AddIns/BackendBindings/CSharpBinding/Project/Src/CSharpLanguageBinding.cs

@ -84,7 +84,9 @@ namespace CSharpBinding @@ -84,7 +84,9 @@ namespace CSharpBinding
public IProject CreateProject(ProjectCreateInformation info, XmlElement projectOptions)
{
return new CSharpProject(info);
CSharpProject p = new CSharpProject(info);
p.ImportOptions(projectOptions.Attributes);
return p;
}
}
}

3
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/Signing.cs

@ -17,6 +17,7 @@ namespace CSharpBinding.OptionPanels @@ -17,6 +17,7 @@ namespace CSharpBinding.OptionPanels
this.project = (CSharpProject)((Properties)CustomizationObject).Get("Project");
Get<CheckBox>("signAssembly").Checked = project.SignAssembly;
Get<CheckBox>("signAssembly").CheckedChanged += new EventHandler(UpdateEnabledStates);
Get<CheckBox>("signAssembly").CheckedChanged += new EventHandler(Save);
Get<RadioButton>("useKeyFile").Checked = project.AssemblyOriginatorKeyMode == AssemblyOriginatorKeyMode.File;
@ -57,7 +58,7 @@ namespace CSharpBinding.OptionPanels @@ -57,7 +58,7 @@ namespace CSharpBinding.OptionPanels
Get<ComboBox>("providerName").Enabled = Get<ComboBox>("container").Enabled = Get<RadioButton>("useKeyProvider").Checked;
Get<ComboBox>("keyFile").Enabled = Get<RadioButton>("useKeyFile").Checked;
Get<CheckBox>("signAssembly").Enabled = Get<RadioButton>("useKeyFile").Checked;
Get<GroupBox>("signing").Enabled = Get<CheckBox>("signAssembly").Checked;
}
public override bool StorePanelContents()

2
src/AddIns/BackendBindings/VBNetBinding/Project/Resources/Signing.xfrm

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
<ClientSize value="{Width=392, Height=312}" />
<Controls>
<System.Windows.Forms.GroupBox>
<Name value="groupBox1" />
<Name value="signingGroupBox" />
<TabIndex value="1" />
<Location value="{X=8,Y=28}" />
<Anchor value="Top, Left, Right" />

3
src/AddIns/BackendBindings/VBNetBinding/Project/Src/OptionPanels/Signing.cs

@ -17,6 +17,7 @@ namespace VBNetBinding.OptionPanels @@ -17,6 +17,7 @@ namespace VBNetBinding.OptionPanels
this.project = (VBNetProject)((Properties)CustomizationObject).Get("Project");
Get<CheckBox>("signAssembly").Checked = project.SignAssembly;
Get<CheckBox>("signAssembly").CheckedChanged += new EventHandler(UpdateEnabledStates);
Get<CheckBox>("signAssembly").CheckedChanged += new EventHandler(Save);
Get<RadioButton>("useKeyFile").Checked = project.AssemblyOriginatorKeyMode == AssemblyOriginatorKeyMode.File;
@ -57,7 +58,7 @@ namespace VBNetBinding.OptionPanels @@ -57,7 +58,7 @@ namespace VBNetBinding.OptionPanels
Get<ComboBox>("providerName").Enabled = Get<ComboBox>("container").Enabled = Get<RadioButton>("useKeyProvider").Checked;
Get<ComboBox>("keyFile").Enabled = Get<RadioButton>("useKeyFile").Checked;
Get<CheckBox>("signAssembly").Enabled = Get<RadioButton>("useKeyFile").Checked;
Get<GroupBox>("signing").Enabled = Get<CheckBox>("signAssembly").Checked;
}
public override bool StorePanelContents()

4
src/AddIns/BackendBindings/VBNetBinding/Project/Src/VBNetLanguageBinding.cs

@ -84,7 +84,9 @@ namespace VBNetBinding @@ -84,7 +84,9 @@ namespace VBNetBinding
public IProject CreateProject(ProjectCreateInformation info, XmlElement projectOptions)
{
return new VBNetProject(info);
VBNetProject p = new VBNetProject(info);
p.ImportOptions(projectOptions.Attributes);
return p;
}
}
}

2
src/Libraries/NRefactory/Project/Src/Lexer/AbstractLexer.cs

@ -157,8 +157,10 @@ namespace ICSharpCode.NRefactory.Parser @@ -157,8 +157,10 @@ namespace ICSharpCode.NRefactory.Parser
if (curToken.next == null) {
curToken.next = Next();
if (curToken.next != null) {
specialTracker.InformToken(curToken.next.kind);
}
}
curToken = curToken.next;
// Console.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")");

2
src/Libraries/NRefactory/Project/Src/Lexer/CSharp/Lexer.cs

@ -511,9 +511,11 @@ namespace ICSharpCode.NRefactory.Parser.CSharp @@ -511,9 +511,11 @@ namespace ICSharpCode.NRefactory.Parser.CSharp
escapeSequence = ReadEscapeSequence(out chValue);
}
unchecked {
if ((char)reader.Read() != '\'') {
errors.Error(y, x, String.Format("Char not terminated"));
}
}
return new Token(Tokens.Literal, x, y, "'" + ch + escapeSequence + "'", chValue);
}

7
src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs

@ -167,7 +167,7 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -167,7 +167,7 @@ namespace ICSharpCode.SharpDevelop.Gui
}
void ClearText()
{
textEditorControl.Document.TextContent = "";
textEditorControl.Text = "";
}
void CategoryTextSet(object sender, TextEventArgs e)
@ -204,7 +204,7 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -204,7 +204,7 @@ namespace ICSharpCode.SharpDevelop.Gui
if (text == null) {
text = String.Empty;
}
textEditorControl.Document.TextContent = text;
textEditorControl.Text = text;
// textEditorControl.Select(text.Length , 0);
// textEditorControl.Select();
// textEditorControl.ScrollToCaret();
@ -304,8 +304,7 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -304,8 +304,7 @@ namespace ICSharpCode.SharpDevelop.Gui
textLine = textLines.Substring(lineStartIndex, lineLength);
wasFound = true;
break;
}
else {
} else {
lineStartIndex = i + 1;
lineLength = 0;
}

1
src/Main/Base/Project/Src/Gui/XmlForms/Lib/DefaultObjectCreator.cs

@ -33,7 +33,6 @@ namespace ICSharpCode.SharpDevelop.Gui.XmlForms @@ -33,7 +33,6 @@ namespace ICSharpCode.SharpDevelop.Gui.XmlForms
t = typeof(String).Assembly.GetType(name);
}
// try to create the object from some assembly which is currently
// loaded by the running application.
if (t == null) {

18
src/Main/Base/Project/Src/Project/AbstractProject.cs

@ -5,6 +5,7 @@ using System.Diagnostics; @@ -5,6 +5,7 @@ using System.Diagnostics;
using System.IO;
using System.Globalization;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
@ -24,6 +25,23 @@ namespace ICSharpCode.SharpDevelop.Project @@ -24,6 +25,23 @@ namespace ICSharpCode.SharpDevelop.Project
protected string fileName;
protected string language;
/// <summary>
/// Import options from an attribute collection. This is used to read the template options.
/// </summary>
public void ImportOptions(XmlAttributeCollection attributes)
{
Type t = GetType();
foreach (XmlAttribute attr in attributes) {
PropertyInfo prop = t.GetProperty(attr.Name, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Public);
if (prop == null) {
MessageService.ShowError("Property '" + attr.Name + "' does not exist!");
} else {
TypeConverter desc = TypeDescriptor.GetConverter(prop.PropertyType);
prop.SetValue(this, desc.ConvertFromInvariantString(attr.Value), null);
}
}
}
protected bool isDirty = false;
[Browsable(false)]

6
src/Main/Core/Project/Src/Services/MessageService/MessageService.cs

@ -55,9 +55,12 @@ namespace ICSharpCode.Core @@ -55,9 +55,12 @@ namespace ICSharpCode.Core
Console.WriteLine();
if (message != null)
Console.WriteLine(message);
if (ex != null) {
Console.WriteLine(ex);
Console.Beep();
#else
return;
}
#endif
string msg = String.Empty;
if (message != null) {
@ -73,7 +76,6 @@ namespace ICSharpCode.Core @@ -73,7 +76,6 @@ namespace ICSharpCode.Core
}
MessageBox.Show(MessageService.MainForm, StringParser.Parse(msg), StringParser.Parse("${res:Global.ErrorText}"), MessageBoxButtons.OK, MessageBoxIcon.Error);
#endif
}
public static void ShowWarning(string message)

Loading…
Cancel
Save