Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ilcRepro.md « Documentation - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cac2bf0d3785fa9f1528d0ae8123ba6d0de25bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# .NET Native Internal Compiler Errors

It looks like you probably hit a bug in .NET Native.
You can help make .NET better by sending a bug report.
However, take a look at the [Known Issues](#known-issues) section below
before sending a bug report. There may already be a
workaround for your issue.

## Creating and Sending a .NET Native repro

1. Add `<NetNativeReproPath>C:\myReproDirectory</NetNativeReproPath>` to the primary PropertyGroup in your project file, the file ending in csproj, vsproj, vcxproj, or jsproj. You can set `C:\myReproDirectory` to any directory that exists. [Examples are below.](#examples)
2. Rebuild your app. You will find ilcRepro.zip in the repro directory you specified above.
3. Put ilcRepro.zip on your OneDrive, Dropbox, or another storage provider. Send a link to ilcRepro.zip and a description of your issue to dotnetnative@microsoft.com.
4. Remove `<NetNativeReproPath>` from your project file.

## Compilation Failure in Store

UWP apps containing managed code are compiled in Store using the .NET Native Toolchain. If there is a compilation failure in the Store, you will get an error message like the following:

`This submission failed due to compilation error {0}. More information about this error can be found here.`

In such a case, please ensure that you were able to build your application in Release mode successfully at the time you submitted it to Store. If it did, please send the error number you got in the message above and email dotnetnative@microsoft.com.

For help with any other issues, please share their details at https://connect.microsoft.com/visualstudio/

## Examples

Below are examples of where to add the `<NetNativeReproPath>` tag.

### C# (*.csproj)

	<?xml version="1.0" encoding="utf-8"?>
	<Project ToolsVersion="14.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)' == '' ">x86</Platform>
	    <ProjectGuid>{B44664F5-278C-4ABE-B62E-A5CA20E3DC48}</ProjectGuid>
	    <OutputType>AppContainerExe</OutputType>
	    <AppDesignerFolder>Properties</AppDesignerFolder>
	    <RootNamespace>App1</RootNamespace>
	    <AssemblyName>App1</AssemblyName>
	    <DefaultLanguage>en-US</DefaultLanguage>
	    <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
	    <TargetPlatformVersion>10.0.10158.0</TargetPlatformVersion>
	    <TargetPlatformMinVersion>10.0.10158.0</TargetPlatformMinVersion>
	    <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
	    <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
	    <FileAlignment>512</FileAlignment>
	    <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
	    <PackageCertificateKeyFile>App1_TemporaryKey.pfx</PackageCertificateKeyFile>
	    <NetNativeReproPath>C:\myRepro</NetNativeReproPath>
	  </PropertyGroup>
	  ⋮
	</Project>

### VB (*.vbproj)

	<?xml version="1.0" encoding="utf-8"?>
	<Project ToolsVersion="14.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)' == '' ">x86</Platform>
	    <ProjectGuid>{8C7ADA9E-47DF-4937-A1D9-62CA9B88A100}</ProjectGuid>
	    <OutputType>AppContainerExe</OutputType>
	    <RootNamespace>App4</RootNamespace>
	    <AssemblyName>App4</AssemblyName>
	    <DefaultLanguage>en-US</DefaultLanguage>
	    <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
	    <TargetPlatformVersion>10.0.10158.0</TargetPlatformVersion>
	    <TargetPlatformMinVersion>10.0.10158.0</TargetPlatformMinVersion>
	    <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
	    <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
	    <FileAlignment>512</FileAlignment>
	    <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
	    <PackageCertificateKeyFile>App4_TemporaryKey.pfx</PackageCertificateKeyFile>
	    <NetNativeReproPath>C:\myRepro</NetNativeReproPath>
	  </PropertyGroup>
	  ⋮
	</Project>

### C++ (*.vcxproj)

	<?xml version="1.0" encoding="utf-8"?>
	<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	  <PropertyGroup Label="Globals">
	    <ProjectGuid>{74010e92-8ead-4acc-8fc6-7db385af579b}</ProjectGuid>
	    <RootNamespace>App2</RootNamespace>
	    <DefaultLanguage>en-US</DefaultLanguage>
	    <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
	    <AppContainerApplication>true</AppContainerApplication>
	    <ApplicationType>Windows Store</ApplicationType>
	    <WindowsTargetPlatformVersion>10.0.10158.0</WindowsTargetPlatformVersion>
	    <WindowsTargetPlatformMinVersion>10.0.10158.0</WindowsTargetPlatformMinVersion>
	    <ApplicationTypeRevision>10.0</ApplicationTypeRevision>
	    <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
	    <NetNativeReproPath>C:\myRepro</NetNativeReproPath>
	  </PropertyGroup>
	  ⋮
	</Project>

### JS (*.jsproj)

	<?xml version="1.0" encoding="utf-8"?>
	<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	  ⋮
	  <PropertyGroup>
	    <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
	    <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
	    <TargetPlatformVersion>10.0.10158.0</TargetPlatformVersion>
	    <TargetPlatformMinVersion>10.0.10158.0</TargetPlatformMinVersion>
	    <MinimumVisualStudioVersion>$(VersionNumberMajor).$(VersionNumberMinor)</MinimumVisualStudioVersion>
	    <DefaultLanguage>en-US</DefaultLanguage>
	    
	    <PackageCertificateKeyFile>App3_TemporaryKey.pfx</PackageCertificateKeyFile>
	    <NetNativeReproPath>C:\myRepro</NetNativeReproPath>
	  </PropertyGroup>
	  ⋮
	</Project>