Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions Telerik.JustMock/Core/Licensing/LicenseException.cs

This file was deleted.

91 changes: 0 additions & 91 deletions Telerik.JustMock/Core/Licensing/LicenseManager.cs

This file was deleted.

4 changes: 4 additions & 0 deletions Telerik.JustMock/Core/MocksRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ limitations under the License.
using Telerik.JustMock.Core.TransparentProxy;
using Telerik.JustMock.Diagnostics;
using Telerik.JustMock.Expectations;
#if FEATURE_LICENSING
using Telerik.JustMock.Core.Licensing;
#endif
#if DEBUG
using Telerik.JustMock.Helpers;
#endif
Expand Down Expand Up @@ -134,10 +136,12 @@ internal bool IsRetired

static MocksRepository()
{
#if FEATURE_LICENSING
if (!Licensing.LicenseManager.IsLicenseValid)
{
throw new Licensing.LicenseException(Licensing.LicenseManager.Message);
}
#endif

#if !COREFX
var badApples = new[]
Expand Down
7 changes: 7 additions & 0 deletions Telerik.JustMock/Telerik.JustMock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<EnableLicensing Condition=" $(EnableLicensing) == '' ">false</EnableLicensing>
<ProjectGuid>{0749EBC2-4E83-4960-BF28-1FF5C2DEB2B9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
Expand Down Expand Up @@ -57,6 +58,11 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(EnableLicensing)' == 'true' ">
<DefineConstants>$(DefineConstants);FEATURE_LICENSING</DefineConstants>
<LicensingBasePath>..\..\CodeBase\Build\Licensing</LicensingBasePath>
<CallHomePath>..\..\call-home</CallHomePath>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
<DefineConstants>$(DefineConstants);FEATURE_APPDOMAIN;FEATURE_ASSEMBLYBUILDER_SAVE</DefineConstants>
</PropertyGroup>
Expand Down Expand Up @@ -221,4 +227,5 @@
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<Import Project="$(LicensingBasePath)\TelerikLicensing.targets" Condition=" '$(EnableLicensing)' == 'true' "/>
</Project>