Skip to content

Commit

Permalink
Removida a constante TEST e inserida a DEBUG, para definir se a URI d…
Browse files Browse the repository at this point in the history
…e ManifestacaoNFe deve ser de produção ou homologação.
  • Loading branch information
FerreraGab95 committed Jul 16, 2021
1 parent 0a580f3 commit 967ba5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion JpManifestoNFE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<DefineConstants>TEST</DefineConstants> <!--Define a constante de testes-->
<DefineConstants>DEBUG</DefineConstants>
<Version>0.9.1</Version>
<Authors>JpManifestoNFE</Authors>
<Copyright>GPL-3.0 License</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <!--Define a constante de testes-->
</PropertyGroup>

<ItemGroup>
Expand All @@ -21,5 +25,12 @@
<ItemGroup>
<Folder Include="Connected Services\" />
</ItemGroup>

<ItemGroup>
<None Include="LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion ManifestacaoNFe/ManifestacaoNFe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ManifestacaoNFe : SefazWebService, IManifestacaoNFe
/// </summary>
private XmlSign xmlSigner;

#if TEST
#if DEBUG
private TAmb tipoAmbiente = TAmb.Homologacao;
private const string WEB_SERVICE_URI = "https://hom.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"; //Homologação (Testes)
#else
Expand Down

0 comments on commit 967ba5e

Please sign in to comment.