Prechádzať zdrojové kódy

Обновил модели

Igor 5 mesiacov pred
rodič
commit
10db2ceb23

+ 1 - 1
src/SASDesktop/App.config

@@ -8,7 +8,7 @@
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
   </startup>
   <connectionStrings>
-    <add name="SASEntities" connectionString="metadata=res://*/Models.SAS.csdl|res://*/Models.SAS.ssdl|res://*/Models.SAS.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=srv-wsr\is4;initial catalog=SAS;user id=user12;password=is4-user12;application name=EntityFramework;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
+    <add name="SASEntities" connectionString="metadata=res://*/Models.SAS.csdl|res://*/Models.SAS.ssdl|res://*/Models.SAS.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=vpmt.ru\is4;initial catalog=SAS;user id=user12;password=is4-user12;encrypt=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
   </connectionStrings>
   <entityFramework>
     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

+ 3 - 0
src/SASDesktop/Models/Category.cs

@@ -18,6 +18,7 @@ namespace SASDesktop.Models
         public Category()
         {
             this.LicenseCategories = new HashSet<LicenseCategory>();
+            this.Transports = new HashSet<Transport>();
         }
     
         public int ID { get; set; }
@@ -25,5 +26,7 @@ namespace SASDesktop.Models
     
         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
         public virtual ICollection<LicenseCategory> LicenseCategories { get; set; }
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Transport> Transports { get; set; }
     }
 }

+ 9 - 0
src/SASDesktop/Models/Color.cs

@@ -14,6 +14,12 @@ namespace SASDesktop.Models
     
     public partial class Color
     {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Color()
+        {
+            this.Transports = new HashSet<Transport>();
+        }
+    
         public int ID { get; set; }
         public string HEX { get; set; }
         public string NameRus { get; set; }
@@ -21,5 +27,8 @@ namespace SASDesktop.Models
         public string NameEng { get; set; }
         public string DiscriptionEng { get; set; }
         public bool IsMetallic { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Transport> Transports { get; set; }
     }
 }

+ 9 - 0
src/SASDesktop/Models/DriveType.cs

@@ -14,7 +14,16 @@ namespace SASDesktop.Models
     
     public partial class DriveType
     {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public DriveType()
+        {
+            this.Transports = new HashSet<Transport>();
+        }
+    
         public int ID { get; set; }
         public string Name { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Transport> Transports { get; set; }
     }
 }

+ 8 - 0
src/SASDesktop/Models/Model.cs

@@ -14,10 +14,18 @@ namespace SASDesktop.Models
     
     public partial class Model
     {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Model()
+        {
+            this.Transports = new HashSet<Transport>();
+        }
+    
         public int ID { get; set; }
         public int Brand { get; set; }
         public string Name { get; set; }
     
         public virtual Brand Brand1 { get; set; }
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Transport> Transports { get; set; }
     }
 }

+ 3 - 0
src/SASDesktop/Models/Region.cs

@@ -18,6 +18,7 @@ namespace SASDesktop.Models
         public Region()
         {
             this.RegionCodes = new HashSet<RegionCode>();
+            this.Transports = new HashSet<Transport>();
         }
     
         public int ID { get; set; }
@@ -29,5 +30,7 @@ namespace SASDesktop.Models
     
         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
         public virtual ICollection<RegionCode> RegionCodes { get; set; }
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Transport> Transports { get; set; }
     }
 }

+ 1 - 1
src/SASDesktop/Models/SAS.Designer.cs

@@ -1,4 +1,4 @@
-// Создание кода T4 для модели "C:\Users\user\source\SAS\src\SASDesktop\Models\SAS.edmx" включено. 
+// Создание кода T4 для модели "C:\Users\igors\OneDrive\Рабочий стол\цв\SAS\src\SASDesktop\Models\SAS.edmx" включено. 
 // Чтобы включить формирование кода прежних версий, измените значение свойства "Стратегия создания кода" конструктора
 // на "Legacy ObjectContext". Это свойство доступно в окне "Свойства", если модель
 // открыта в конструкторе.

+ 208 - 0
src/SASDesktop/Models/SAS.edmx

@@ -208,6 +208,10 @@
           <Property Name="version" Type="int" />
           <Property Name="definition" Type="varbinary(max)" />
         </EntityType>
+        <!--Ошибки, обнаруженные при создании:
+предупреждение 6002: В таблице или представлении "SAS.dbo.TempBrand" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
+        <!--Ошибки, обнаруженные при создании:
+предупреждение 6002: В таблице или представлении "SAS.dbo.TempD" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
         <EntityType Name="Transport">
           <Key>
             <PropertyRef Name="ID" />
@@ -420,6 +424,78 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
+        <Association Name="FK_Transport_Category">
+          <End Role="Category" Type="Self.Category" Multiplicity="0..1" />
+          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Category">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Category" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_Color">
+          <End Role="Color" Type="Self.Color" Multiplicity="1" />
+          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Color">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Color" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_DriveType">
+          <End Role="DriveType" Type="Self.DriveType" Multiplicity="1" />
+          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="DriveType">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="DriveType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_Model">
+          <End Role="Model" Type="Self.Model" Multiplicity="1" />
+          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Model">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Model" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_Region">
+          <End Role="Region" Type="Self.Region" Multiplicity="0..1" />
+          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Region">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Region" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_TransportType">
+          <End Role="TransportType" Type="Self.TransportType" Multiplicity="0..1" />
+          <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="TransportType">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="TransportType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
         <Association Name="FK_TransportOwnership_Citizen">
           <End Role="Citizen" Type="Self.Citizen" Multiplicity="1" />
           <End Role="TransportOwnership" Type="Self.TransportOwnership" Multiplicity="*" />
@@ -551,6 +627,30 @@
             <End Role="Region" EntitySet="Region" />
             <End Role="RegionCode" EntitySet="RegionCode" />
           </AssociationSet>
+          <AssociationSet Name="FK_Transport_Category" Association="Self.FK_Transport_Category">
+            <End Role="Category" EntitySet="Category" />
+            <End Role="Transport" EntitySet="Transport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_Color" Association="Self.FK_Transport_Color">
+            <End Role="Color" EntitySet="Color" />
+            <End Role="Transport" EntitySet="Transport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_DriveType" Association="Self.FK_Transport_DriveType">
+            <End Role="DriveType" EntitySet="DriveType" />
+            <End Role="Transport" EntitySet="Transport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_Model" Association="Self.FK_Transport_Model">
+            <End Role="Model" EntitySet="Model" />
+            <End Role="Transport" EntitySet="Transport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_Region" Association="Self.FK_Transport_Region">
+            <End Role="Region" EntitySet="Region" />
+            <End Role="Transport" EntitySet="Transport" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_TransportType" Association="Self.FK_Transport_TransportType">
+            <End Role="TransportType" EntitySet="TransportType" />
+            <End Role="Transport" EntitySet="Transport" />
+          </AssociationSet>
           <AssociationSet Name="FK_TransportOwnership_Citizen" Association="Self.FK_TransportOwnership_Citizen">
             <End Role="Citizen" EntitySet="Citizen" />
             <End Role="TransportOwnership" EntitySet="TransportOwnership" />
@@ -671,6 +771,30 @@
             <End Role="Transport" EntitySet="Transports" />
             <End Role="TransportPhoto" EntitySet="TransportPhotoes" />
           </AssociationSet>
+          <AssociationSet Name="FK_Transport_Category" Association="SASModel.FK_Transport_Category">
+            <End Role="Category" EntitySet="Categories" />
+            <End Role="Transport" EntitySet="Transports" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_Color" Association="SASModel.FK_Transport_Color">
+            <End Role="Color" EntitySet="Colors" />
+            <End Role="Transport" EntitySet="Transports" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_DriveType" Association="SASModel.FK_Transport_DriveType">
+            <End Role="DriveType" EntitySet="DriveTypes" />
+            <End Role="Transport" EntitySet="Transports" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_Model" Association="SASModel.FK_Transport_Model">
+            <End Role="Model" EntitySet="Models" />
+            <End Role="Transport" EntitySet="Transports" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_Region" Association="SASModel.FK_Transport_Region">
+            <End Role="Region" EntitySet="Regions" />
+            <End Role="Transport" EntitySet="Transports" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Transport_TransportType" Association="SASModel.FK_Transport_TransportType">
+            <End Role="TransportType" EntitySet="TransportTypes" />
+            <End Role="Transport" EntitySet="Transports" />
+          </AssociationSet>
         </EntityContainer>
         <EntityType Name="Brand">
           <Key>
@@ -687,6 +811,7 @@
           <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
           <Property Name="Name" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
           <NavigationProperty Name="LicenseCategories" Relationship="SASModel.FK_LicenseCategory_Category" FromRole="Category" ToRole="LicenseCategory" />
+          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Category" FromRole="Category" ToRole="Transport" />
         </EntityType>
         <EntityType Name="Citizen">
           <Key>
@@ -724,6 +849,7 @@
           <Property Name="NameEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
           <Property Name="DiscriptionEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
           <Property Name="IsMetallic" Type="Boolean" Nullable="false" />
+          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Color" FromRole="Color" ToRole="Transport" />
         </EntityType>
         <EntityType Name="Company">
           <Key>
@@ -747,6 +873,7 @@
           </Key>
           <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
           <Property Name="Name" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
+          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_DriveType" FromRole="DriveType" ToRole="Transport" />
         </EntityType>
         <EntityType Name="Employee">
           <Key>
@@ -865,6 +992,7 @@
           <Property Name="Brand" Type="Int32" Nullable="false" />
           <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
           <NavigationProperty Name="Brand1" Relationship="SASModel.FK_Model_Brand" FromRole="Model" ToRole="Brand" />
+          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Model" FromRole="Model" ToRole="Transport" />
         </EntityType>
         <EntityType Name="Region">
           <Key>
@@ -877,6 +1005,7 @@
           <Property Name="OKATO" Type="String" MaxLength="3" FixedLength="false" Unicode="false" />
           <Property Name="ISO3166_2" Type="String" MaxLength="7" FixedLength="false" Unicode="false" />
           <NavigationProperty Name="RegionCodes" Relationship="SASModel.FK_RegionCode_Region" FromRole="Region" ToRole="RegionCode" />
+          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Region" FromRole="Region" ToRole="Transport" />
         </EntityType>
         <EntityType Name="RegionCode">
           <Key>
@@ -925,6 +1054,12 @@
           <Property Name="MaxLoadKg" Type="Int32" />
           <NavigationProperty Name="TransportOwnerships" Relationship="SASModel.FK_TransportOwnership_Transport" FromRole="Transport" ToRole="TransportOwnership" />
           <NavigationProperty Name="TransportPhotoes" Relationship="SASModel.FK_TransportPhoto_Transport" FromRole="Transport" ToRole="TransportPhoto" />
+          <NavigationProperty Name="Category1" Relationship="SASModel.FK_Transport_Category" FromRole="Transport" ToRole="Category" />
+          <NavigationProperty Name="Color1" Relationship="SASModel.FK_Transport_Color" FromRole="Transport" ToRole="Color" />
+          <NavigationProperty Name="DriveType1" Relationship="SASModel.FK_Transport_DriveType" FromRole="Transport" ToRole="DriveType" />
+          <NavigationProperty Name="Model1" Relationship="SASModel.FK_Transport_Model" FromRole="Transport" ToRole="Model" />
+          <NavigationProperty Name="Region1" Relationship="SASModel.FK_Transport_Region" FromRole="Transport" ToRole="Region" />
+          <NavigationProperty Name="TransportType1" Relationship="SASModel.FK_Transport_TransportType" FromRole="Transport" ToRole="TransportType" />
         </EntityType>
         <EntityType Name="TransportOwnership">
           <Key>
@@ -954,6 +1089,7 @@
           <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
           <Property Name="NameRus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
           <Property Name="NameEng" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
+          <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_TransportType" FromRole="TransportType" ToRole="Transport" />
         </EntityType>
         <Association Name="FK_Model_Brand">
           <End Type="SASModel.Brand" Role="Brand" Multiplicity="1" />
@@ -1171,6 +1307,78 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
+        <Association Name="FK_Transport_Category">
+          <End Type="SASModel.Category" Role="Category" Multiplicity="0..1" />
+          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Category">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Category" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_Color">
+          <End Type="SASModel.Color" Role="Color" Multiplicity="1" />
+          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Color">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Color" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_DriveType">
+          <End Type="SASModel.DriveType" Role="DriveType" Multiplicity="1" />
+          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="DriveType">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="DriveType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_Model">
+          <End Type="SASModel.Model" Role="Model" Multiplicity="1" />
+          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Model">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Model" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_Region">
+          <End Type="SASModel.Region" Role="Region" Multiplicity="0..1" />
+          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Region">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="Region" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Transport_TransportType">
+          <End Type="SASModel.TransportType" Role="TransportType" Multiplicity="0..1" />
+          <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="TransportType">
+              <PropertyRef Name="ID" />
+            </Principal>
+            <Dependent Role="Transport">
+              <PropertyRef Name="TransportType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
       </Schema>
     </edmx:ConceptualModels>
     <!-- C-S mapping content -->

+ 6 - 0
src/SASDesktop/Models/SAS.edmx.diagram

@@ -49,6 +49,12 @@
         <AssociationConnector Association="SASModel.FK_RegionCode_Region" />
         <AssociationConnector Association="SASModel.FK_TransportOwnership_Transport" />
         <AssociationConnector Association="SASModel.FK_TransportPhoto_Transport" />
+        <AssociationConnector Association="SASModel.FK_Transport_Category" />
+        <AssociationConnector Association="SASModel.FK_Transport_Color" />
+        <AssociationConnector Association="SASModel.FK_Transport_DriveType" />
+        <AssociationConnector Association="SASModel.FK_Transport_Model" />
+        <AssociationConnector Association="SASModel.FK_Transport_Region" />
+        <AssociationConnector Association="SASModel.FK_Transport_TransportType" />
       </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>

+ 6 - 0
src/SASDesktop/Models/Transport.cs

@@ -40,5 +40,11 @@ namespace SASDesktop.Models
         public virtual ICollection<TransportOwnership> TransportOwnerships { get; set; }
         [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
         public virtual ICollection<TransportPhoto> TransportPhotoes { get; set; }
+        public virtual Category Category1 { get; set; }
+        public virtual Color Color1 { get; set; }
+        public virtual DriveType DriveType1 { get; set; }
+        public virtual Model Model1 { get; set; }
+        public virtual Region Region1 { get; set; }
+        public virtual TransportType TransportType1 { get; set; }
     }
 }

+ 9 - 0
src/SASDesktop/Models/TransportType.cs

@@ -14,8 +14,17 @@ namespace SASDesktop.Models
     
     public partial class TransportType
     {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public TransportType()
+        {
+            this.Transports = new HashSet<Transport>();
+        }
+    
         public int ID { get; set; }
         public string NameRus { get; set; }
         public string NameEng { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Transport> Transports { get; set; }
     }
 }

+ 3 - 3
src/VinLibTest/App.config

@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="utf-8" ?>
+<?xml version="1.0" encoding="utf-8"?>
 <configuration>
     <startup> 
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1" />
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
     </startup>
-</configuration>
+</configuration>

+ 2 - 1
src/VinLibTest/VinLibTest.csproj

@@ -8,10 +8,11 @@
     <OutputType>Exe</OutputType>
     <RootNamespace>VinLibTest</RootNamespace>
     <AssemblyName>VinLibTest</AssemblyName>
-    <TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
     <Deterministic>true</Deterministic>
+    <TargetFrameworkProfile />
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <PlatformTarget>AnyCPU</PlatformTarget>