小编Ben*_*son的帖子

有没有办法修复错误:“Xamarin.Forms 建议 TargetPlatformMinVersion >= 10.0.17763.0(当前项目为 -1)”

当我想将 Xamarin 应用程序从 Android 9.0 升级到 Android 10 时遇到问题。

/Users/user/.nuget/packages/xamarin.forms/4.8.0.1269/buildTransitive/Xamarin.Forms.targets(5,5): 
Warning: Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1) (WeatherApp)
Run Code Online (Sandbox Code Playgroud)

错误在代码的这一部分:

 <Warning
    Text="Xamarin.Forms recommends TargetPlatformVersion &gt;= 10.0.17763.0 (current project is $(MicrosoftUIXamlTargetPlatformCheckValue))"
    Condition="$(MicrosoftUIXamlTargetPlatformCheckValue) &lt; 17763" />
Run Code Online (Sandbox Code Playgroud)

我想在 Android 10 上运行这个应用程序,但是在真正的 Android 设备应用程序上构建和运行的每个干净的应用程序每次都没有响应。

c# android xamarin

12
推荐指数
2
解决办法
3586
查看次数

如何在 Android 项目上的 Visual Studio for Mac 中将“EmbedAssembliesIntoApk”MSBuild 属性设置为“true”?

我的 Android 项目遇到问题,想要将 EmbedAssembliesIntoApk 设置为 true ?

错误是:

error XA0130: Please disable fast deployment in the Visual Studio project property pages or edit the project file in a text editor and set the 'EmbedAssembliesIntoApk' MSBuild property to 'true'.
Run Code Online (Sandbox Code Playgroud)

我可以从哪里将 EmbedAssembliesIntoApk 设置为 true ?

c# xamarin

7
推荐指数
3
解决办法
9432
查看次数

如何从外网访问.NET Core上的WEB API?

我想从外部访问我的 API 吗?

在本地计算机上,我像这样访问我的 API:

https://localhost:44377/api/stations 
Run Code Online (Sandbox Code Playgroud)

例如我的 IP 地址是:186.143.119.43

我需要更改什么才能通过外部网络看到它?

这是我的launchSettings.json文件:

    {
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:51429",
      "sslPort": 44377
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "weatherforecast",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "WebAPI": {
      "commandName": "Project",
      "launchBrowser": true,
      "launchUrl": "weatherforecast",
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

如何从外网访问该API?

.net c# .net-core

5
推荐指数
1
解决办法
7615
查看次数

如何使用 ReactJS 将我的输入值保存到文本文件?

我有包含三个输入字段的联系表单,我想在用户单击按钮时将输入值保存到文本文件中。我怎样才能做到这一点.. ?我可以举个例子吗?

我的代码:

import React, { } from 'react';
import logo from './logo.svg';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import { Container, Row, Col } from 'reactstrap';
import MapContainer from "./Map";
import { Button, ButtonGroup } from '@material-ui/core';
import axios from 'axios';

class App extends React.Component {

  constructor(props) {
    super(props);
    this.state = {
      name: '',
      phone: '',
      message: ''
    };
  }

  TextFile = () => {
    const element = document.createElement("a");
    const file = new Blob([document.getElementById('message').value], {type: 'text/plain'});
    element.href = URL.createObjectURL(file);
    element.download = …
Run Code Online (Sandbox Code Playgroud)

javascript fs node.js npm reactjs

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

c# ×3

xamarin ×2

.net ×1

.net-core ×1

android ×1

fs ×1

javascript ×1

node.js ×1

npm ×1

reactjs ×1