Browse Source

Adding packages to all the projects.
- Added ignoreing static properties

Kenric Nugteren 8 months ago
parent
commit
92ff29650a

+ 6 - 0
prs.classes/AssemblyInfo.cs

@@ -0,0 +1,6 @@
+using AutoProperties;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+[assembly: BypassAutoPropertySettersInConstructors(true)]

+ 2 - 0
prs.classes/Entities/Job/Job.cs

@@ -1,6 +1,7 @@
 using System;
 using System;
 using System.ComponentModel;
 using System.ComponentModel;
 using System.Linq.Expressions;
 using System.Linq.Expressions;
+using AutoProperties;
 using InABox.Core;
 using InABox.Core;
 
 
 namespace Comal.Classes
 namespace Comal.Classes
@@ -174,6 +175,7 @@ namespace Comal.Classes
 
 
         [DoNotPersist]
         [DoNotPersist]
         [DoNotSerialize]
         [DoNotSerialize]
+        [InterceptIgnore]
         public static String JobNumberPrefix { get; set; }
         public static String JobNumberPrefix { get; set; }
 
 
         public Expression<Func<Job, string>> AutoIncrementField() => x => x.JobNumber;
         public Expression<Func<Job, string>> AutoIncrementField() => x => x.JobNumber;

+ 2 - 0
prs.classes/Entities/PurchaseOrder/PurchaseOrder.cs

@@ -4,6 +4,7 @@ using System.Linq;
 using System.Linq.Expressions;
 using System.Linq.Expressions;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
 using System.Xml.Linq;
 using System.Xml.Linq;
+using AutoProperties;
 using InABox.Clients;
 using InABox.Clients;
 using InABox.Core;
 using InABox.Core;
 
 
@@ -219,6 +220,7 @@ namespace Comal.Classes
 
 
         [DoNotPersist]
         [DoNotPersist]
         [DoNotSerialize]
         [DoNotSerialize]
+        [InterceptIgnore]
         public static string PONumberPrefix { get; set; }
         public static string PONumberPrefix { get; set; }
 
 
         [NullEditor]
         [NullEditor]

+ 1 - 2
prs.classes/Entities/Stock/StockMovement/StockMovement.cs

@@ -292,8 +292,7 @@ namespace Comal.Classes
                 bChanging = false;
                 bChanging = false;
             }
             }
 
 
-            else
-                base.DoPropertyChanged(name, before, after);
+            base.DoPropertyChanged(name, before, after);
         }
         }
     }
     }
 }
 }

+ 1 - 1
prs.classes/FodyWeavers.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
 	<AutoProperties/>
 	<AutoProperties/>
-  <PropertyChanged />
+	<PropertyChanged />
 </Weavers>
 </Weavers>

+ 4 - 1
prs.desktop/AssemblyInfo.cs

@@ -1,3 +1,4 @@
+using AutoProperties;
 using System.Windows;
 using System.Windows;
 
 
 [assembly: ThemeInfo(
 [assembly: ThemeInfo(
@@ -7,4 +8,6 @@ using System.Windows;
     ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
     ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
     //(used if a resource is not found in the page,
     //(used if a resource is not found in the page,
     // app, or any theme specific resource dictionaries)
     // app, or any theme specific resource dictionaries)
-)]
+)]
+
+[assembly: BypassAutoPropertySettersInConstructors(true)]

+ 4 - 1
prs.desktop/FodyWeavers.xml

@@ -1 +1,4 @@
-<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd" />
+<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
+	<AutoProperties/>
+	<PropertyChanged/>
+</Weavers>

+ 2 - 0
prs.desktop/PRSDesktop.csproj

@@ -847,6 +847,7 @@
     </ItemGroup>
     </ItemGroup>
 
 
     <ItemGroup>
     <ItemGroup>
+      <PackageReference Include="AutoProperties.Fody" Version="1.25.0" />
       <PackageReference Include="bblanchon.PDFium.Win32" Version="127.0.6504" />
       <PackageReference Include="bblanchon.PDFium.Win32" Version="127.0.6504" />
       <PackageReference Include="DeviceId.Windows.Wmi" Version="6.2.0" />
       <PackageReference Include="DeviceId.Windows.Wmi" Version="6.2.0" />
       <PackageReference Include="Dirkster.AvalonDock" Version="4.72.1" />
       <PackageReference Include="Dirkster.AvalonDock" Version="4.72.1" />
@@ -863,6 +864,7 @@
       <PackageReference Include="NDesk.Options.Core" Version="1.2.8" />
       <PackageReference Include="NDesk.Options.Core" Version="1.2.8" />
       <PackageReference Include="net.sf.mpxj" Version="12.10.1" />
       <PackageReference Include="net.sf.mpxj" Version="12.10.1" />
       <PackageReference Include="OpenExchangeRates.NET" Version="1.3.0" />
       <PackageReference Include="OpenExchangeRates.NET" Version="1.3.0" />
+      <PackageReference Include="PropertyChanged.Fody" Version="4.1.0" />
       <PackageReference Include="Scriban" Version="5.10.0" />
       <PackageReference Include="Scriban" Version="5.10.0" />
       <PackageReference Include="SharpAvi" Version="3.0.1" />
       <PackageReference Include="SharpAvi" Version="3.0.1" />
       <PackageReference Include="Syncfusion.DataGridExcelExport.Wpf" Version="25.2.6" />
       <PackageReference Include="Syncfusion.DataGridExcelExport.Wpf" Version="25.2.6" />

+ 2 - 0
prs.licensing/AssemblyInfo.cs

@@ -1,3 +1,4 @@
+using AutoProperties;
 using System.Windows;
 using System.Windows;
 
 
 [assembly: ThemeInfo(
 [assembly: ThemeInfo(
@@ -8,3 +9,4 @@ using System.Windows;
                                               //(used if a resource is not found in the page,
                                               //(used if a resource is not found in the page,
                                               // app, or any theme specific resource dictionaries)
                                               // app, or any theme specific resource dictionaries)
 )]
 )]
+[assembly: BypassAutoPropertySettersInConstructors(true)]

+ 2 - 1
prs.licensing/FodyWeavers.xml

@@ -1,3 +1,4 @@
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
-  <PropertyChanged />
+	<AutoProperties/>
+	<PropertyChanged />
 </Weavers>
 </Weavers>

+ 1 - 0
prs.licensing/PRSLicensing.csproj

@@ -22,6 +22,7 @@
   </ItemGroup>
   </ItemGroup>
 
 
   <ItemGroup>
   <ItemGroup>
+    <PackageReference Include="AutoProperties.Fody" Version="1.25.0" />
     <PackageReference Include="Fody" Version="6.8.1">
     <PackageReference Include="Fody" Version="6.8.1">
       <PrivateAssets>all</PrivateAssets>
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

+ 6 - 0
prs.server/AssemblyInfo.cs

@@ -0,0 +1,6 @@
+using AutoProperties;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+[assembly: BypassAutoPropertySettersInConstructors(true)]

+ 2 - 1
prs.server/FodyWeavers.xml

@@ -1,3 +1,4 @@
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
-  <PropertyChanged />
+	<AutoProperties/>
+	<PropertyChanged />
 </Weavers>
 </Weavers>

+ 1 - 0
prs.server/PRSServer.csproj

@@ -78,6 +78,7 @@
 
 
     <ItemGroup>
     <ItemGroup>
         <PackageReference Include="ACMESharpCore" Version="2.2.0.148" />
         <PackageReference Include="ACMESharpCore" Version="2.2.0.148" />
+        <PackageReference Include="AutoProperties.Fody" Version="1.25.0" />
         <PackageReference Include="bblanchon.PDFium.Win32" Version="127.0.6504" />
         <PackageReference Include="bblanchon.PDFium.Win32" Version="127.0.6504" />
         <PackageReference Include="Core.System.Configuration.Install" Version="1.1.0" />
         <PackageReference Include="Core.System.Configuration.Install" Version="1.1.0" />
         <PackageReference Include="Core.System.ServiceProcess" Version="2.0.1" />
         <PackageReference Include="Core.System.ServiceProcess" Version="2.0.1" />

+ 6 - 0
prs.stores/AssemblyInfo.cs

@@ -0,0 +1,6 @@
+using AutoProperties;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+[assembly: BypassAutoPropertySettersInConstructors(true)]

+ 2 - 1
prs.stores/FodyWeavers.xml

@@ -1,3 +1,4 @@
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
 <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
-  <PropertyChanged />
+	<AutoProperties/>
+	<PropertyChanged />
 </Weavers>
 </Weavers>

+ 1 - 0
prs.stores/FodyWeavers.xsd

@@ -53,6 +53,7 @@
             </xs:attribute>
             </xs:attribute>
           </xs:complexType>
           </xs:complexType>
         </xs:element>
         </xs:element>
+        <xs:element name="AutoProperties" minOccurs="0" maxOccurs="1" type="xs:anyType" />
       </xs:all>
       </xs:all>
       <xs:attribute name="VerifyAssembly" type="xs:boolean">
       <xs:attribute name="VerifyAssembly" type="xs:boolean">
         <xs:annotation>
         <xs:annotation>

+ 1 - 0
prs.stores/PRSStores.csproj

@@ -9,6 +9,7 @@
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>
+    <PackageReference Include="AutoProperties.Fody" Version="1.25.0" />
     <PackageReference Include="Fody" Version="6.8.1">
     <PackageReference Include="Fody" Version="6.8.1">
       <PrivateAssets>all</PrivateAssets>
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>