Skip to content

Commit 6904a9c

Browse files
author
flavio
committed
fix target frameworks and dependences in NFe.Danfe.Nativo
1 parent 4102c39 commit 6904a9c

File tree

2 files changed

+28
-114
lines changed

2 files changed

+28
-114
lines changed

NFe.Danfe.Nativo/GraphicsPrinter/QrCode.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public static class QrCode
4141
{
4242
public static Image Gerar(string qrCode)
4343
{
44-
BarcodeWriter bw = new BarcodeWriter();
44+
var bw = new ZXing.Windows.Compatibility.BarcodeWriter();
4545
EncodingOptions encOptions = new EncodingOptions { Width = 130, Height = 130, Margin = 0 };
4646
bw.Options = encOptions;
4747
bw.Format = BarcodeFormat.QR_CODE;
48-
Bitmap imageQrCode = new Bitmap(bw.Write(qrCode));
48+
Bitmap imageQrCode = bw.Write(qrCode);
4949
return imageQrCode;
5050
}
5151
}
+26-112
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,27 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{BA27D218-484B-4F08-BAB9-38C02181BDED}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>NFe.Danfe.Nativo</RootNamespace>
11-
<AssemblyName>NFe.Danfe.Nativo</AssemblyName>
12-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<TargetFrameworkProfile />
15-
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
21-
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
<Prefer32Bit>false</Prefer32Bit>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants>TRACE</DefineConstants>
31-
<ErrorReport>prompt</ErrorReport>
32-
<WarningLevel>4</WarningLevel>
33-
<Prefer32Bit>false</Prefer32Bit>
34-
</PropertyGroup>
35-
<ItemGroup>
36-
<Reference Include="System" />
37-
<Reference Include="System.Core" />
38-
<Reference Include="System.Drawing" />
39-
<Reference Include="System.Xml.Linq" />
40-
<Reference Include="System.Data.DataSetExtensions" />
41-
<Reference Include="Microsoft.CSharp" />
42-
<Reference Include="System.Data" />
43-
<Reference Include="System.Xml" />
44-
<Reference Include="zxing, Version=0.14.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL">
45-
<SpecificVersion>False</SpecificVersion>
46-
<HintPath>Dlls\zxing.dll</HintPath>
47-
</Reference>
48-
<Reference Include="zxing.presentation, Version=0.14.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL">
49-
<SpecificVersion>False</SpecificVersion>
50-
<HintPath>Dlls\zxing.presentation.dll</HintPath>
51-
</Reference>
52-
</ItemGroup>
53-
<ItemGroup>
54-
<Compile Include="Fontes\Fonte.cs" />
55-
<Compile Include="GraphicsPrinter\AdicionarImagem.cs" />
56-
<Compile Include="GraphicsPrinter\AdicionarTexto.cs" />
57-
<Compile Include="GraphicsPrinter\ComprimentoMaximo.cs" />
58-
<Compile Include="GraphicsPrinter\DefineQuebraDeLinha.cs" />
59-
<Compile Include="GraphicsPrinter\LinhaHorizontal.cs" />
60-
<Compile Include="GraphicsPrinter\MedidasLinha.cs" />
61-
<Compile Include="GraphicsPrinter\QrCode.cs" />
62-
<Compile Include="GraphicsPrinter\RedimensionaImagemPara.cs" />
63-
<Compile Include="NFCe\DanfeNativoNfce.cs" />
64-
<Compile Include="Properties\Resources.Designer.cs">
65-
<AutoGen>True</AutoGen>
66-
<DesignTime>True</DesignTime>
67-
<DependentUpon>Resources.resx</DependentUpon>
68-
</Compile>
69-
</ItemGroup>
70-
<ItemGroup>
71-
<ProjectReference Include="..\DFe.Classes\DFe.Classes.csproj">
72-
<Project>{a08ce194-9780-493d-a758-d5b3f44bd208}</Project>
73-
<Name>DFe.Classes</Name>
74-
</ProjectReference>
75-
<ProjectReference Include="..\DFe.Utils\DFe.Utils.csproj">
76-
<Project>{97f3c222-fd10-488a-812b-e514c3a8863c}</Project>
77-
<Name>DFe.Utils</Name>
78-
</ProjectReference>
79-
<ProjectReference Include="..\NFe.Classes\NFe.Classes.csproj">
80-
<Project>{075a79c1-b038-46a8-8895-0a9753273b31}</Project>
81-
<Name>NFe.Classes</Name>
82-
</ProjectReference>
83-
<ProjectReference Include="..\NFe.Utils\NFe.Utils.csproj">
84-
<Project>{3e75202b-5aad-4f07-98b5-46b106678ca7}</Project>
85-
<Name>NFe.Utils</Name>
86-
</ProjectReference>
87-
</ItemGroup>
88-
<ItemGroup>
89-
<Content Include="Dlls\zxing.dll" />
90-
<Content Include="Dlls\zxing.presentation.dll" />
91-
<Content Include="Fontes\LeiaMe.txt" />
92-
</ItemGroup>
93-
<ItemGroup>
94-
<None Include="Fontes\OpenSans-CondBold.ttf" />
95-
<None Include="Fontes\OpenSans-CondLight.ttf" />
96-
<None Include="Fontes\OpenSans-CondLightItalic.ttf" />
97-
<None Include="Fontes\UbuntuCondensed-Regular.ttf" />
98-
</ItemGroup>
99-
<ItemGroup>
100-
<EmbeddedResource Include="Properties\Resources.resx">
101-
<Generator>ResXFileCodeGenerator</Generator>
102-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
103-
</EmbeddedResource>
104-
</ItemGroup>
105-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
106-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
107-
Other similar extension points exist, see Microsoft.Common.targets.
108-
<Target Name="BeforeBuild">
109-
</Target>
110-
<Target Name="AfterBuild">
111-
</Target>
112-
-->
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFrameworks>net462;netstandard2.0;net6.0-windows</TargetFrameworks>
4+
</PropertyGroup>
5+
6+
<ItemGroup>
7+
<ProjectReference Include="..\DFe.Classes\DFe.Classes.csproj" />
8+
<ProjectReference Include="..\DFe.Utils\DFe.Utils.csproj" />
9+
<ProjectReference Include="..\NFe.Classes\NFe.Classes.csproj" />
10+
<ProjectReference Include="..\NFe.Utils\NFe.Utils.csproj" />
11+
</ItemGroup>
12+
13+
<ItemGroup>
14+
<Content Include="Fontes\LeiaMe.txt" />
15+
</ItemGroup>
16+
<ItemGroup>
17+
<None Include="Fontes\OpenSans-CondBold.ttf" />
18+
<None Include="Fontes\OpenSans-CondLight.ttf" />
19+
<None Include="Fontes\OpenSans-CondLightItalic.ttf" />
20+
<None Include="Fontes\UbuntuCondensed-Regular.ttf" />
21+
</ItemGroup>
22+
<ItemGroup>
23+
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
24+
<PackageReference Include="ZXing.Net" Version="0.16.9" />
25+
<PackageReference Include="ZXing.Net.Bindings.Windows.Compatibility" Version="0.16.12" />
26+
</ItemGroup>
11327
</Project>

0 commit comments

Comments
 (0)