Skip to content

Commit 5a307e2

Browse files
committed
icon fix
1 parent 9175504 commit 5a307e2

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

dr.analyzer/MainForm.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dr.analyzer/MainForm.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public partial class MainForm : Form
3333
public MainForm()
3434
{
3535
InitializeComponent();
36+
37+
this.Icon = (System.Drawing.Icon)Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetExecutingAssembly().Location);
3638

3739
ImageList iconsList = new ImageList();
3840
iconsList.Images.Add(Icon.ExtractAssociatedIcon(@"Icons\folder.ico"));

dr.analyzer/Properties/Resources.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dr.analyzer/Properties/Resources.resx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
4747
mimetype: application/x-microsoft.net.object.binary.base64
4848
value : The object must be serialized with
49-
: System.Serialization.Formatters.Binary.BinaryFormatter
49+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
5050
: and then encoded with base64 encoding.
5151
5252
mimetype: application/x-microsoft.net.object.soap.base64
@@ -60,6 +60,7 @@
6060
: and then encoded with base64 encoding.
6161
-->
6262
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
6364
<xsd:element name="root" msdata:IsDataSet="true">
6465
<xsd:complexType>
6566
<xsd:choice maxOccurs="unbounded">
@@ -68,9 +69,10 @@
6869
<xsd:sequence>
6970
<xsd:element name="value" type="xsd:string" minOccurs="0" />
7071
</xsd:sequence>
71-
<xsd:attribute name="name" type="xsd:string" />
72+
<xsd:attribute name="name" use="required" type="xsd:string" />
7273
<xsd:attribute name="type" type="xsd:string" />
7374
<xsd:attribute name="mimetype" type="xsd:string" />
75+
<xsd:attribute ref="xml:space" />
7476
</xsd:complexType>
7577
</xsd:element>
7678
<xsd:element name="assembly">
@@ -85,9 +87,10 @@
8587
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
8688
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
8789
</xsd:sequence>
88-
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
90+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
8991
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
9092
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93+
<xsd:attribute ref="xml:space" />
9194
</xsd:complexType>
9295
</xsd:element>
9396
<xsd:element name="resheader">
@@ -109,9 +112,9 @@
109112
<value>2.0</value>
110113
</resheader>
111114
<resheader name="reader">
112-
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113116
</resheader>
114117
<resheader name="writer">
115-
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116119
</resheader>
117120
</root>

dr.analyzer/dr_analyzer.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@
5050
</PropertyGroup>
5151
<PropertyGroup />
5252
<PropertyGroup />
53+
<PropertyGroup />
5354
<PropertyGroup>
54-
<ApplicationManifest>app.manifest</ApplicationManifest>
55+
<ApplicationIcon>Resources\DrAnalyzer.ico</ApplicationIcon>
5556
</PropertyGroup>
57+
<PropertyGroup />
5658
<PropertyGroup>
57-
<ApplicationIcon>Icons\DrAnalyzer.ico</ApplicationIcon>
59+
<ApplicationManifest>app.manifest</ApplicationManifest>
5860
</PropertyGroup>
5961
<ItemGroup>
6062
<Reference Include="System" />
@@ -132,9 +134,6 @@
132134
</BootstrapperPackage>
133135
</ItemGroup>
134136
<ItemGroup>
135-
<Content Include="Icons\DrAnalyzer.ico">
136-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
137-
</Content>
138137
<Content Include="Icons\file.ico">
139138
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
140139
</Content>
@@ -144,6 +143,7 @@
144143
<Content Include="Icons\module.ico">
145144
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
146145
</Content>
146+
<None Include="Resources\DrAnalyzer.ico" />
147147
</ItemGroup>
148148
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
149149
</Project>

0 commit comments

Comments
 (0)