当我想将 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 >= 10.0.17763.0 (current project is $(MicrosoftUIXamlTargetPlatformCheckValue))"
Condition="$(MicrosoftUIXamlTargetPlatformCheckValue) < 17763" />
Run Code Online (Sandbox Code Playgroud)
我想在 Android 10 上运行这个应用程序,但是在真正的 Android 设备应用程序上构建和运行的每个干净的应用程序每次都没有响应。
我的 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 ?
我想从外部访问我的 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?
我有包含三个输入字段的联系表单,我想在用户单击按钮时将输入值保存到文本文件中。我怎样才能做到这一点.. ?我可以举个例子吗?
我的代码:
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)