小编cab*_*140的帖子

在Android O中使用意图广播USER_PRESENT

由于O更强制执行后台服务,如何在定位26+时收到USER_PRESENT的广播?

Logcat:

system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.USER_PRESENT flg=0x24200010 } to fr.cab13140.nullcontactdeleter/.BootThread
Run Code Online (Sandbox Code Playgroud)

android

7
推荐指数
1
解决办法
2747
查看次数

在非托管 C# .NET 库项目中使用 NuGet 库

我正在为名为 BIM Vision 的软件创建插件。他们有一个 C API 的包装器,因此我使用 UnmanagedExports 来让我的非托管 DLL 与包装器一起编译得很好。

问题是我根本无法在我的项目中使用 NuGet 库。它们编译得很好,但在我的代码中调用它们的任何函数都会使软件崩溃。

所有的库都与我自己的 DLL 一起编译在它们自己单独的 DLL 中。软件只能加载我的 DLL(因为其他 DLL 错过了与 BIMVision 对话的代码)

如何让软件找到丢失的 DLL?我应该把它们放在哪里?

我的 .csproj 看起来像这样:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
    <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <ProjectGuid>{362E40F4-4A37-48B3-A7A5-93E5535A9B22}</ProjectGuid>
        <OutputType>Library</OutputType>
        <AppDesignerFolder>Properties</AppDesignerFolder>
        <RootNamespace>ExcelLink</RootNamespace>
        <AssemblyName>ExcelLink</AssemblyName>
        <TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
        <FileAlignment>512</FileAlignment>
    </PropertyGroup>
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <DebugSymbols>true</DebugSymbols>
        <DebugType>full</DebugType>
        <Optimize>false</Optimize>
        <OutputPath>C:\Users\Daniel\Documents\SAMT\BIMVISION SDK\bim_vision_exe\plugins</OutputPath>
        <DefineConstants>DEBUG;TRACE</DefineConstants>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
        <PlatformTarget>x86</PlatformTarget>
    </PropertyGroup>
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' …
Run Code Online (Sandbox Code Playgroud)

.net c# unmanagedexports

6
推荐指数
1
解决办法
262
查看次数

标签 统计

.net ×1

android ×1

c# ×1

unmanagedexports ×1