Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.52
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
Windows /
Microsoft.NET /
Framework /
v2.0.50727 /
Delete
Unzip
Name
Size
Permission
Date
Action
1033
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
1046
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
ASP.NETWebAdminFiles
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
CONFIG
[ DIR ]
drwxrwxrwx
2023-01-18 02:30
GAC
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
MSBuild
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
MUI
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
RedistList
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
SubsetList
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
pt-BR
[ DIR ]
drwxrwxrwx
2023-01-18 02:29
Accessibility.dll
10.5
KB
-rw-rw-rw-
2019-12-06 20:49
AdoNetDiag.dll
144.37
KB
-rw-rw-rw-
2019-12-03 18:04
AppLaunch.exe
57.43
KB
-rwxrwxrwx
2019-12-03 18:04
AspNetMMCExt.dll
496
KB
-rw-rw-rw-
2019-12-06 20:49
Aspnet.config
323
B
-rw-rw-rw-
2023-01-18 02:29
Aspnet_perf.dll
32.87
KB
-rw-rw-rw-
2019-12-03 18:04
Aspnet_regsql.exe.config
205
B
-rw-rw-rw-
2023-01-18 02:29
CLR.mof
21.54
KB
-rw-rw-rw-
2019-04-18 23:46
CLR.mof.uninstall
907
B
-rw-rw-rw-
2019-04-18 23:46
CORPerfMonExt.dll
87.87
KB
-rw-rw-rw-
2019-12-03 18:04
CasPol.exe
104
KB
-rwxrwxrwx
2019-12-03 18:04
Culture.dll
26.37
KB
-rw-rw-rw-
2019-12-03 18:04
CustomMarshalers.dll
67.5
KB
-rw-rw-rw-
2019-12-03 18:04
EventLogMessages.dll
779.37
KB
-rw-rw-rw-
2019-12-03 18:04
IEExec.exe
9.5
KB
-rwxrwxrwx
2019-12-06 20:49
IEExecRemote.dll
8
KB
-rw-rw-rw-
2019-12-06 20:49
IEHost.dll
76
KB
-rw-rw-rw-
2019-12-06 20:49
IIEHost.dll
6.5
KB
-rw-rw-rw-
2019-12-06 20:49
ISymWrapper.dll
70.5
KB
-rw-rw-rw-
2019-12-03 18:04
InstallCommon.sql
24.03
KB
-rw-rw-rw-
2023-01-18 02:29
InstallMembership.sql
54.76
KB
-rw-rw-rw-
2023-01-18 02:29
InstallPersistSqlState.sql
51.12
KB
-rw-rw-rw-
2023-01-18 02:29
InstallPersonalization.sql
34.13
KB
-rw-rw-rw-
2023-01-18 02:29
InstallProfile.SQL
20.4
KB
-rw-rw-rw-
2023-01-18 02:29
InstallRoles.sql
33.46
KB
-rw-rw-rw-
2023-01-18 02:29
InstallSqlState.sql
50.91
KB
-rw-rw-rw-
2023-01-18 02:29
InstallSqlStateTemplate.sql
52.64
KB
-rw-rw-rw-
2023-01-18 02:29
InstallUtil.exe
28
KB
-rwxrwxrwx
2019-12-03 18:04
InstallUtilLib.dll
63.37
KB
-rw-rw-rw-
2019-12-03 18:04
InstallWebEventSqlProvider.sql
6.31
KB
-rw-rw-rw-
2023-01-18 02:29
MSBuild.exe
68
KB
-rwxrwxrwx
2019-12-03 18:04
MSBuild.rsp
732
B
-rw-rw-rw-
2023-01-18 02:29
Microsoft.Build.Engine.dll
380
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Build.Framework.dll
36
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Build.Tasks.dll
640
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Build.Utilities.dll
76
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Build.xsd
2.3
KB
-rw-rw-rw-
2023-01-18 02:29
Microsoft.CSharp.targets
9.16
KB
-rw-rw-rw-
2019-04-18 23:46
Microsoft.Common.Tasks
6.68
KB
-rw-rw-rw-
2019-04-18 23:46
Microsoft.Common.targets
174.47
KB
-rw-rw-rw-
2019-04-18 23:46
Microsoft.JScript.dll
732
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.JScript.tlb
52
KB
-rw-rw-rw-
2019-12-03 18:04
Microsoft.VisualBasic.Compatibility.Data.dll
108
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.VisualBasic.Compatibility.dll
364
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.VisualBasic.Vsa.dll
28
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.VisualBasic.dll
644
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.VisualBasic.targets
9.8
KB
-rw-rw-rw-
2019-04-18 23:46
Microsoft.VisualC.Dll
5.5
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Vsa.Vb.CodeDOMProcessor.dll
12.5
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Vsa.Vb.CodeDOMProcessor.tlb
6
KB
-rw-rw-rw-
2019-12-03 18:04
Microsoft.Vsa.dll
32
KB
-rw-rw-rw-
2019-12-06 20:49
Microsoft.Vsa.tlb
22.5
KB
-rw-rw-rw-
2019-12-03 18:04
Microsoft.WinFX.targets
44.73
KB
-rw-rw-rw-
2019-04-18 23:47
Microsoft_VsaVb.dll
7
KB
-rw-rw-rw-
2019-12-06 20:49
MmcAspExt.dll
95.87
KB
-rw-rw-rw-
2019-12-03 18:04
PerfCounter.dll
86.87
KB
-rw-rw-rw-
2019-12-03 18:04
RegAsm.exe
52
KB
-rwxrwxrwx
2019-12-03 18:04
RegSvcs.exe
32
KB
-rwxrwxrwx
2019-12-03 18:04
SOS.dll
383.92
KB
-rw-rw-rw-
2024-07-12 07:37
ShFusRes.dll
92.87
KB
-rw-rw-rw-
2019-12-03 18:04
System.Configuration.Install.dll
80
KB
-rw-rw-rw-
2019-12-06 20:49
System.Data.OracleClient.dll
476
KB
-rw-rw-rw-
2019-12-03 18:04
System.Data.SqlXml.dll
728
KB
-rw-rw-rw-
2019-12-06 20:48
System.Data.dll
2.85
MB
-rw-rw-rw-
2023-11-30 12:22
System.Deployment.dll
824
KB
-rw-rw-rw-
2019-12-06 20:49
System.Design.dll
4.83
MB
-rw-rw-rw-
2019-12-06 20:49
System.DirectoryServices.Protocols.dll
184
KB
-rw-rw-rw-
2019-12-06 20:49
System.DirectoryServices.dll
392
KB
-rw-rw-rw-
2022-03-01 14:57
System.Drawing.Design.dll
80
KB
-rw-rw-rw-
2019-12-06 20:49
System.Drawing.dll
616
KB
-rw-rw-rw-
2019-12-06 20:49
System.Drawing.tlb
8
KB
-rw-rw-rw-
2019-12-03 18:04
System.EnterpriseServices.Thunk.dll
55.87
KB
-rw-rw-rw-
2019-12-03 18:04
System.EnterpriseServices.Wrapper.dll
111
KB
-rw-rw-rw-
2019-12-03 18:04
System.EnterpriseServices.dll
252
KB
-rw-rw-rw-
2019-12-03 18:04
System.EnterpriseServices.tlb
40
KB
-rw-rw-rw-
2019-12-03 18:04
System.Management.dll
380
KB
-rw-rw-rw-
2019-12-06 20:49
System.Messaging.dll
252
KB
-rw-rw-rw-
2019-12-06 20:49
System.Runtime.Remoting.dll
296
KB
-rw-rw-rw-
2023-11-30 12:21
System.Runtime.Serialization.Formatters.Soap.dll
128
KB
-rw-rw-rw-
2019-12-06 20:49
System.Security.dll
268
KB
-rw-rw-rw-
2023-01-18 02:29
System.ServiceProcess.dll
116
KB
-rw-rw-rw-
2019-12-06 20:49
System.Transactions.dll
255.5
KB
-rw-rw-rw-
2019-12-03 18:04
System.Web.Mobile.dll
816
KB
-rw-rw-rw-
2019-12-06 20:49
System.Web.RegularExpressions.dll
96
KB
-rw-rw-rw-
2023-09-27 07:33
System.Web.Services.dll
820
KB
-rw-rw-rw-
2019-12-06 20:49
System.Web.dll
5.05
MB
-rw-rw-rw-
2023-09-27 07:33
System.Web.tlb
6.5
KB
-rw-rw-rw-
2019-12-03 18:04
System.Windows.Forms.dll
4.79
MB
-rw-rw-rw-
2019-12-06 20:49
System.Windows.Forms.tlb
92
KB
-rw-rw-rw-
2019-12-03 18:04
System.XML.dll
1.96
MB
-rw-rw-rw-
2019-12-06 20:49
System.configuration.dll
420
KB
-rw-rw-rw-
2023-01-18 02:29
System.dll
3.07
MB
-rw-rw-rw-
2023-11-30 12:25
System.tlb
80
KB
-rw-rw-rw-
2019-12-03 18:04
TLBREF.DLL
79.37
KB
-rw-rw-rw-
2019-12-03 18:04
UnInstallProfile.SQL
4.65
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallCommon.sql
3.8
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallMembership.sql
6.75
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallPersistSqlState.sql
9.96
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallPersonalization.sql
7.31
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallRoles.sql
5.73
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallSqlState.sql
9.46
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallSqlStateTemplate.sql
11.52
KB
-rw-rw-rw-
2023-01-18 02:29
UninstallWebEventSqlProvider.sql
2.94
KB
-rw-rw-rw-
2023-01-18 02:29
VsaVb7rt.dll
1.28
MB
-rw-rw-rw-
2019-12-03 18:04
WMINet_Utils.dll
116.37
KB
-rw-rw-rw-
2019-12-03 18:04
XPThemes.manifest
474
B
-rw-rw-rw-
2019-04-18 23:47
adonetdiag.mof
5.87
KB
-rw-rw-rw-
2019-04-18 23:46
alink.dll
96.37
KB
-rw-rw-rw-
2019-12-03 18:04
aspnet_compiler.exe
36
KB
-rwxrwxrwx
2019-12-03 18:04
aspnet_filter.dll
21.37
KB
-rw-rw-rw-
2019-12-03 18:04
aspnet_isapi.dll
16.87
KB
-rw-rw-rw-
2019-12-03 18:04
aspnet_perf.h
6.38
KB
-rw-rw-rw-
2019-04-18 23:46
aspnet_perf.ini
800.31
KB
-rw-rw-rw-
2019-04-18 23:47
aspnet_perf2.ini
798.5
KB
-rw-rw-rw-
2019-04-18 23:47
aspnet_rc.dll
82.37
KB
-rw-rw-rw-
2019-12-03 18:04
aspnet_regbrowsers.exe
24
KB
-rwxrwxrwx
2024-06-04 07:11
aspnet_regiis.exe
33.44
KB
-rwxrwxrwx
2024-06-04 07:12
aspnet_regsql.exe
104
KB
-rwxrwxrwx
2024-06-04 07:11
aspnet_state.exe
33.41
KB
-rwxrwxrwx
2019-12-03 18:04
aspnet_state_perf.h
318
B
-rw-rw-rw-
2019-04-18 23:46
aspnet_state_perf.ini
38.72
KB
-rw-rw-rw-
2019-04-18 23:46
aspnet_wp.exe
33.94
KB
-rwxrwxrwx
2023-09-27 07:34
big5.nlp
65.16
KB
-rw-rw-rw-
2022-09-18 13:38
bopomofo.nlp
80.25
KB
-rw-rw-rw-
2022-09-18 13:38
caspol.exe.config
181
B
-rw-rw-rw-
2023-01-18 02:29
csc.exe
78.41
KB
-rwxrwxrwx
2019-12-03 18:04
csc.exe.config
221
B
-rw-rw-rw-
2023-01-18 02:29
csc.rsp
976
B
-rw-rw-rw-
2023-01-18 02:29
cscomp.dll
1.11
MB
-rw-rw-rw-
2019-12-03 18:04
cscompmgd.dll
13
KB
-rw-rw-rw-
2019-12-06 20:49
cvtres.exe
34.47
KB
-rwxrwxrwx
2019-12-03 18:04
dfdll.dll
66.37
KB
-rw-rw-rw-
2019-12-03 18:04
dfsvc.exe
5
KB
-rwxrwxrwx
2019-12-06 20:49
diasymreader.dll
561.87
KB
-rw-rw-rw-
2019-12-03 18:04
dv_aspnetmmc.chm
112.43
KB
-rw-rw-rw-
2019-04-18 23:46
dw20.exe
35.41
KB
-rwxrwxrwx
2019-12-03 18:04
fusion.dll
18.37
KB
-rw-rw-rw-
2019-12-03 18:04
ieexec.exe.config
181
B
-rw-rw-rw-
2023-01-18 02:29
ilasm.exe
225.42
KB
-rwxrwxrwx
2019-12-03 18:04
ilasm.exe.config
181
B
-rw-rw-rw-
2023-01-18 02:29
jsc.exe
40
KB
-rwxrwxrwx
2019-12-06 20:49
jsc.exe.config
221
B
-rw-rw-rw-
2023-01-18 02:29
ksc.nlp
114.02
KB
-rw-rw-rw-
2022-09-18 13:38
msbuild.exe.config
559
B
-rw-rw-rw-
2023-01-18 02:29
mscordacwks.dll
970.44
KB
-rw-rw-rw-
2024-07-12 07:37
mscordbc.dll
81.37
KB
-rw-rw-rw-
2019-12-03 18:04
mscordbi.dll
300.87
KB
-rw-rw-rw-
2019-12-03 18:04
mscoree.tlb
36
KB
-rw-rw-rw-
2019-12-03 18:04
mscorie.dll
45.37
KB
-rw-rw-rw-
2019-12-03 18:04
mscorjit.dll
359.54
KB
-rw-rw-rw-
2024-06-04 07:12
mscorld.dll
91.87
KB
-rw-rw-rw-
2019-12-03 18:04
mscorlib.dll
4.41
MB
-rw-rw-rw-
2024-07-12 22:52
mscorlib.tlb
512
KB
-rw-rw-rw-
2019-12-03 18:04
mscorpe.dll
112.42
KB
-rw-rw-rw-
2024-06-04 07:12
mscorrc.dll
337.37
KB
-rw-rw-rw-
2019-12-03 18:04
mscorsec.dll
75.37
KB
-rw-rw-rw-
2019-12-03 18:04
mscorsn.dll
18.37
KB
-rw-rw-rw-
2019-12-03 18:04
mscorsvc.dll
227.37
KB
-rw-rw-rw-
2019-12-03 18:04
mscorsvw.exe
67.91
KB
-rwxrwxrwx
2019-12-03 18:04
mscortim.dll
18.87
KB
-rw-rw-rw-
2019-12-03 18:04
mscorwks.dll
6.12
MB
-rw-rw-rw-
2024-07-12 07:37
ngen.exe
98.45
KB
-rwxrwxrwx
2019-12-03 18:04
normalization.dll
24.07
KB
-rw-rw-rw-
2019-12-03 18:04
normidna.nlp
57.95
KB
-rw-rw-rw-
2022-09-18 13:38
normnfc.nlp
44.72
KB
-rw-rw-rw-
2022-09-18 13:38
normnfd.nlp
38.36
KB
-rw-rw-rw-
2022-09-18 13:38
normnfkc.nlp
64.83
KB
-rw-rw-rw-
2022-09-18 13:38
normnfkd.nlp
58.88
KB
-rw-rw-rw-
2022-09-18 13:38
peverify.dll
141.92
KB
-rw-rw-rw-
2024-06-04 07:12
prc.nlp
81.79
KB
-rw-rw-rw-
2022-09-18 13:38
prcp.nlp
81.79
KB
-rw-rw-rw-
2022-09-18 13:38
regasm.exe.config
181
B
-rw-rw-rw-
2023-01-18 02:29
regsvcs.exe.config
181
B
-rw-rw-rw-
2023-01-18 02:29
sbscmp20_mscorlib.dll
14.07
KB
-rw-rw-rw-
2019-04-18 23:47
shfusion.chm
99.12
KB
-rw-rw-rw-
2019-04-18 23:47
shfusion.dll
116.37
KB
-rw-rw-rw-
2019-12-03 18:04
sortkey.nlp
256
KB
-rw-rw-rw-
2022-09-18 13:38
sorttbls.nlp
19.84
KB
-rw-rw-rw-
2022-09-18 13:38
sysglobl.dll
108
KB
-rw-rw-rw-
2019-12-06 20:49
vbc.exe
1.12
MB
-rwxrwxrwx
2024-06-04 07:12
vbc.exe.config
221
B
-rw-rw-rw-
2023-01-18 02:29
vbc.rsp
1.04
KB
-rw-rw-rw-
2023-01-18 02:29
vsavb7.olb
4
KB
-rw-rw-rw-
2019-12-03 18:04
webengine.dll
430.53
KB
-rw-rw-rw-
2023-09-27 07:34
xjis.nlp
27.63
KB
-rw-rw-rw-
2022-09-18 13:38
Save
Rename
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <BuildSystem>MSBuild</BuildSystem> <TaskVersion>3.0.0.0</TaskVersion> <TaskKeyToken>31bf3856ad364e35</TaskKeyToken> <BuildTaskAssembly Condition="'$(BuildTaskAssembly)'==''">PresentationBuildTasks, Version=$(TaskVersion), Culture=neutral, PublicKeyToken=$(TaskKeyToken)</BuildTaskAssembly> <AlwaysCompileMarkupFilesInSeparateDomain Condition="'$(BuildingInsideVisualStudio)' == 'true' and '$(AlwaysCompileMarkupFilesInSeparateDomain)' == ''">true</AlwaysCompileMarkupFilesInSeparateDomain> <AlwaysCompileMarkupFilesInSeparateDomain Condition="'$(AlwaysCompileMarkupFilesInSeparateDomain)' == '' ">false</AlwaysCompileMarkupFilesInSeparateDomain> <LocalizationDirectivesToLocFile Condition="'$(LocalizationDirectivesToLocFile)' == ''">None</LocalizationDirectivesToLocFile> <GetFrameworkPathsDependsOn> $(GetFrameworkPathsDependsOn); GetWinFXPath </GetFrameworkPathsDependsOn> <WinFXNativePath Condition="'$(WinFXNativePath)' == ''">$(ProgramFiles)\Reference Assemblies\Microsoft\Framework\v3.0</WinFXNativePath> <WinFXWowPath Condition="'$(WinFXWowPath)' == ''">$(ProgramFiles)\Reference Assemblies\Microsoft\Framework\v3.0</WinFXWowPath> </PropertyGroup> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.MarkupCompilePass1" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.UpdateManifestForBrowserApplication" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.UidManager" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.ResourcesGenerator" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.FileClassifier" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.MarkupCompilePass2" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.GenerateTemporaryTargetAssembly" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.MergeLocalizationDirectives" AssemblyName="$(BuildTaskAssembly)" /> <UsingTask TaskName="Microsoft.Build.Tasks.Windows.GetWinFXPath" AssemblyName="$(BuildTaskAssembly)" /> <Target Name="GetWinFXPath"> <GetWinFXPath WinFXNativePath="$(WinFXNativePath)" WinFXWowPath="$(WinFXWowPath)" > <Output TaskParameter="WinFXPath" PropertyName="_WinFXAssemblyDirectory"/> <Output TaskParameter="WinFXPath" PropertyName="WinFXAssemblyDirectory" Condition="'$(ReferenceWinFXAssemblyFromGAC)' != 'true' "/> </GetWinFXPath> <!-- Put WinFX Redist xml file into item type RedistList, so that some CPU specific assemblies can be filtered out by ClickOnce manifest generation task. --> <CreateItem Include="$(_WinFXAssemblyDirectory)\WinFXList.xml"> <Output TaskParameter="Include" ItemName="RedistList" /> </CreateItem> </Target> <!-- Some Default Settings --> <PropertyGroup> <!-- XamlDebuggingInformation property controls whether or not to put line number information in the generated binary file for a Xaml markup file. If XamlDebuggingInformation is set in project file, take whatever setting. If XamlDebuggingInformation property is not explicitly set, and the current build is for debug, Set true to XamlDebuggingInformation, if the build is not for Debug, keep the empty setting for XamlDebuggingInformation, it means not to put line number information in the generated binary file. --> <XamlDebuggingInformation Condition="'$(XamlDebuggingInformation)' == '' and '$(Configuration)' == 'Debug'">true</XamlDebuggingInformation> <HostInBrowser Condition="'$(HostInBrowser)'==''">false</HostInBrowser> <Version Condition="'$(Version)'==''">1.0.0.0</Version> <DeploymentType Condition="'$(DeploymentType)'==''">Installed</DeploymentType> <RunAfterInstall Condition="'$(RunAfterInstall)'==''">true</RunAfterInstall> <ProcessorArchitecture Condition="'$(ProcessorArchitecture)'==''">$(PROCESSOR_ARCHITECTURE)</ProcessorArchitecture> <GeneratedFileExtension>.g$(DefaultLanguageSourceExtension)</GeneratedFileExtension> <OSVersion Condition="'$(OSVersion)' == ''">5.1.2600.0</OSVersion> <!-- Initialize some Local-Type_Ref related properties --> <_RequireMCPass2ForSatelliteAssemblyOnly>false</_RequireMCPass2ForSatelliteAssemblyOnly> <_RequireMCPass2ForMainAssembly>false</_RequireMCPass2ForMainAssembly> <!-- If DebugType is set in project file, below properties should be set already in Microsoft.Common.targets. So set default values here when DebugType is not set in project file. --> <DebugSymbols Condition="'$(DebugType)' == ''">true</DebugSymbols> <_DebugSymbolsProduced Condition="'$(DebugType)' == ''">true</_DebugSymbolsProduced> <DebugType Condition="'$(DebugType)' == ''" >pdbonly</DebugType> </PropertyGroup> <PropertyGroup> <IsApplication Condition="'$(OutputType)'=='exe'">true</IsApplication> <IsApplication Condition="'$(OutputType)'=='winexe'">true</IsApplication> <IsLibrary Condition="'$(OutputType)'=='library'">true</IsLibrary> <IsLibrary Condition="'$(OutputType)'=='module'">true</IsLibrary> </PropertyGroup> <PropertyGroup> <!-- Inject AssignWinFXEmbeddedResource target at right stage. --> <PrepareResourceNamesDependsOn> AssignWinFXEmbeddedResource; $(PrepareResourceNamesDependsOn) </PrepareResourceNamesDependsOn> </PropertyGroup> <!-- Common Application and Library Property settings --> <PropertyGroup> <PrepareResourcesDependsOn> MarkupCompilePass1; MarkupCompilePass2ForMainAssembly; FileClassification; MainResourcesGeneration; $(PrepareResourcesDependsOn) </PrepareResourcesDependsOn> </PropertyGroup> <PropertyGroup> <!-- Add Markup compilation to the CoreCompileDependsOn so that the IDE inproc compilers (particularly VB) can "see" the generated source files. --> <CoreCompileDependsOn Condition="'$(BuildingInsideVisualStudio)' == 'true' "> DesignTimeMarkupCompilation; $(CoreCompileDependsOn) </CoreCompileDependsOn> </PropertyGroup> <Target Name="DesignTimeMarkupCompilation"> <!-- Only if we are not actually performing a compile i.e. we are in design mode --> <CallTarget Condition="'$(BuildingProject)' != 'true'" Targets="MarkupCompilePass1" /> </Target> <!-- Override GetFrameworkPaths in Microsoft.Common.targets to treat WinFX assemblies the same as CLR assemblies, so that they are not copied to the project's Output Path. --> <Target Name="GetFrameworkPaths" DependsOnTargets="$(GetFrameworkPathsDependsOn)"> <!-- Get the path to the target .NET framework directory. --> <GetFrameworkPath> <Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/> <Output TaskParameter="Path" ItemName="_TargetFrameworkDirectoryItem"/> </GetFrameworkPath> <!-- Get the path to the target .NET framework SDK directory. --> <GetFrameworkSDKPath> <Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/> <Output TaskParameter="Path" ItemName="_TargetFrameworkSDKDirectoryItem"/> </GetFrameworkSDKPath> <!-- Adding WinFX path to the TargetFrameworkDirectory property --> <CreateProperty Value="$(TargetFrameworkDirectory);$(CLR_REF_PATH);$(WinFXAssemblyDirectory)" > <Output TaskParameter="Value" PropertyName="TargetFrameworkDirectory" /> </CreateProperty> <CreateItem Include="$(CLR_REF_PATH);$(WinFXAssemblyDirectory)" > <Output ItemName="_TargetFrameworkDirectoryItem" TaskParameter="Include" /> </CreateItem> <Message Text="TargetFrameworkDirectory is $(TargetFrameworkDirectory)." Condition="'$(MSBUILDTargetsVerbose)' == 'true'" /> </Target> <!-- WinFX specific ItemGroup --> <ItemGroup Condition="'$(BuildingInsideVisualStudio)'=='true'"> <!-- Add WinFX specific Item names to AvailableItemName item, so that they can show up in a drop-down menu for Build Action field of the properties window in VisualStudio. --> <AvailableItemName Include="ApplicationDefinition" /> <AvailableItemName Include="Page" /> <AvailableItemName Include="Resource" /> </ItemGroup> <!-- Prepare Resource For SatelliteAssemblies. --> <PropertyGroup Condition="'$(UICulture)' != ''" > <PrepareResourcesForSatelliteAssembliesDependsOn> SatelliteOnlyMarkupCompilePass2; SatelliteResourceGeneration; GenerateResourceWithCultureItem; </PrepareResourcesForSatelliteAssembliesDependsOn> </PropertyGroup> <Target Name="PrepareResourcesForSatelliteAssemblies" Condition="'$(UICulture)' != ''" DependsOnTargets="$(PrepareResourcesForSatelliteAssembliesDependsOn)" > </Target> <PropertyGroup> <!-- Hook up AfterCompileWinFX to that it runs where AfterCompile would have run --> <CompileDependsOn> $(CompileDependsOn); _AfterCompileWinFXInternal </CompileDependsOn> <!-- Any targets that _AfterCompileWinFXInternal depends on. After the xaml file is compiled, the build system needs to generate a final .loc file for localization support. MergeLocalizationDirectives target does this. If UICulture is set, it needs to do below extra work before generating the .loc file: 1. Calls the MarkupCompilePass2 for those xaml file which reference local types. 2. Generate the .resources for given culture from .baml and other resource files. Target PrepareResourcesForSatelliteAssemblies is for this. --> <_AfterCompileWinFXInternalDependsOn> PrepareResourcesForSatelliteAssemblies; MergeLocalizationDirectives; AfterCompileWinFX </_AfterCompileWinFXInternalDependsOn> </PropertyGroup> <!-- Work that we want to be done after the "Compile" target in Microsoft.Common.targets --> <Target Name="_AfterCompileWinFXInternal" DependsOnTargets="$(_AfterCompileWinFXInternalDependsOn)" /> <!-- =========================================================================================== AfterCompileWinFX Redefine this target in your project in order to run tasks just after WinFXCompile. =========================================================================================== --> <Target Name="AfterCompileWinFX"/> <!-- Name : MarkupCompilePass1 This target generates code for every xaml file as well it also generates code for main and IResourceLoader. This target uses MarkupCompilePass1 task. --> <!-- ================================================================ MarkupCompilePass1 ================================================================ --> <Target Name="MarkupCompilePass1" DependsOnTargets="$(MarkupCompilePass1DependsOn)" Condition="'@(Page)@(ApplicationDefinition)' != '' " > <Message Text="(in) Page: '@(Page)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) ApplicationDefinition: '@(ApplicationDefinition)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) Resource: '@(Resource)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) CodeGenReference: '@(ReferencePath)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <MarkupCompilePass1 Language="$(Language)" UICulture="$(UICulture)" ApplicationMarkup="@(ApplicationDefinition)" LanguageSourceExtension="$(DefaultLanguageSourceExtension)" PageMarkup="@(Page)" ContentFiles="@(Content)" AssemblyName="$(AssemblyName)" OutputType="$(OutputType)" AssemblyVersion="$(AssemblyVersion)" AssemblyPublicKeyToken="$(AssemblyPublicKeyToken)" References="@(ReferencePath)" RootNamespace="$(RootNamespace)" KnownReferencePaths="$(MSBuildBinPath);@(_TargetFrameworkDirectoryItem);@(_TargetFrameworkSDKDirectoryItem);@(KnownReferencePaths)" AssembliesGeneratedDuringBuild="@(AssembliesGeneratedDuringBuild)" AlwaysCompileMarkupFilesInSeparateDomain="$(AlwaysCompileMarkupFilesInSeparateDomain)" HostInBrowser="$(HostInBrowser)" LocalizationDirectivesToLocFile="$(LocalizationDirectivesToLocFile)" ContinueOnError="false" SourceCodeFiles="@(Compile)" DefineConstants="$(DefineConstants)" ExtraBuildControlFiles="@(ExtraBuildControlFiles)" XamlDebuggingInformation="$(XamlDebuggingInformation)" OutputPath="$(IntermediateOutputPath)"> <Output ItemName="GeneratedBaml" TaskParameter="GeneratedBamlFiles"/> <Output ItemName="GeneratedLocalizationFiles" TaskParameter="GeneratedLocalizationFiles" /> <Output PropertyName="_RequireMCPass2ForMainAssembly" TaskParameter="RequirePass2ForMainAssembly" /> <Output PropertyName="_RequireMCPass2ForSatelliteAssemblyOnly" TaskParameter="RequirePass2ForSatelliteAssembly" /> <Output ItemName="Compile" TaskParameter="GeneratedCodeFiles" /> <!-- Keep a list of all the generated files, it is used to clean up for a next clean build --> <Output ItemName="FileWrites" TaskParameter="AllGeneratedFiles" /> <Output ItemName="_GeneratedCodeFiles" TaskParameter="GeneratedCodeFiles" /> </MarkupCompilePass1> <Message Text="(out) GeneratedBamlFiles: '@(GeneratedBaml)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(out) SourceCodeFiles: '@(Compile)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(Out) GeneratedCodeFiles: '@(_GeneratedCodeFiles)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(out) GeneratedLocalizationFiles: @(GeneratedLocalizationFiles)" Condition="'$(MSBuildTargetsVerbose)'=='true'" /> <Message Text="(out) _RequireMCPass2ForMainAssembly : '$(_RequireMCPass2ForMainAssembly)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(out) _RequireMCPass2ForSatelliteAssemblyOnly : '$(_RequireMCPass2ForSatelliteAssemblyOnly)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> </Target> <!-- ================================================================ MarkupCompilePass2 ================================================================ Name: MarkupCompilePass2 For those xaml files that contain local-implemented types, this target will invoke MarkupCompilePass2 task to compile those xaml files after the main assembly is generated. If MarkupCompilePass1 task is not invoked, that means there is no any Xaml input file change since last build, and then it is not required to run this MarkupCompilePass2 either. --> <Target Name="MarkupCompilePass2" Condition="Exists('$(IntermediateOutputPath)$(AssemblyName)_MarkupCompile.lref')" > <Message Text="(in) References: '@(ReferencePath);@(AssemblyForLocalTypeReference)'" Condition="'$(MSBuildTargetsVerbose)'=='true'" /> <MarkupCompilePass2 AssemblyName="$(AssemblyName)" OutputType="$(OutputType)" Language="$(Language)" LocalizationDirectivesToLocFile="$(LocalizationDirectivesToLocFile)" RootNamespace="$(RootNamespace)" References="@(ReferencePath);@(AssemblyForLocalTypeReference)" KnownReferencePaths="$(MSBuildBinPath);@(_TargetFrameworkDirectoryItem);@(_TargetFrameworkSDKDirectoryItem);@(KnownReferencePaths)" AssembliesGeneratedDuringBuild="@(AssembliesGeneratedDuringBuild)" AlwaysCompileMarkupFilesInSeparateDomain="$(AlwaysCompileMarkupFilesInSeparateDomain)" XamlDebuggingInformation="$(XamlDebuggingInformation)" GeneratedBaml="" OutputPath="$(IntermediateOutputPath)" ContinueOnError="false" > <!-- Output Items for MarkupCompilePass2 If MarkupCompilePass2 is only for SatelliteAssembly, Append all the generated baml files into SatelliteEmbeddedFiles, No FileClassifier is required. If MarupCompilePass2 is for Main Assembly as well, output the Baml files into GeneratedBaml, FileClassifier task will be invoked later. --> <Output ItemName="GeneratedBamlWithLocalType" TaskParameter="GeneratedBaml" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Output ItemName="GeneratedBaml" TaskParameter="GeneratedBaml" Condition="'$(_RequireMCPass2ForMainAssembly)' == 'true'" /> <Output ItemName="SatelliteEmbeddedFiles" TaskParameter="GeneratedBaml" Condition="'$(_RequireMCPass2ForSatelliteAssemblyOnly)' == 'true'" /> <!-- Put the generated files in item FileWrites so that they can be cleaned up appropriately in a next Rebuild --> <Output ItemName="FileWrites" TaskParameter="GeneratedBaml" /> </MarkupCompilePass2> <Message Text="(out) After MarkupCompilePass2, SatelliteEmbeddedFiles: '@(SatelliteEmbeddedFiles)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(out) GeneratedBamlWithLocalType: '@(GeneratedBamlWithLocalType)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> </Target> <!-- ================================================================ MarkupCompilePass2ForMainAssembly ================================================================ Name : MarkupCompilePass2ForMainAssembly This target is invoked only when there is a xaml file which references local-type and is to embed into main assembly. It is possible when UICulture is not set, or the xaml file has explicitly set Localizable metadata to false. Condition: _RequireMCPass2ForMainAssembly == true --> <PropertyGroup> <MarkupCompilePass2ForMainAssemblyDependsOn> GenerateTemporaryTargetAssembly; MarkupCompilePass2; CleanupTemporaryTargetAssembly </MarkupCompilePass2ForMainAssemblyDependsOn> <_CompileTargetNameForLocalType Condition="'$(_CompileTargetNameForLocalType)' == ''">_CompileTemporaryAssembly</_CompileTargetNameForLocalType> </PropertyGroup> <Target Name="_CompileTemporaryAssembly" DependsOnTargets="BuildOnlySettings;ResolveKeySource;CoreCompile" /> <Target Name="MarkupCompilePass2ForMainAssembly" Condition="'$(_RequireMCPass2ForMainAssembly)' == 'true' " DependsOnTargets="$(MarkupCompilePass2ForMainAssemblyDependsOn)" > </Target> <!-- ========================================== GenerateTemporaryTargetAssembly ========================================== Name : GenerateTemporaryTargetAssembly --> <Target Name="GenerateTemporaryTargetAssembly" Condition="'$(_RequireMCPass2ForMainAssembly)' == 'true' " > <Message Text="MSBuildProjectFile is $(MSBuildProjectFile)" Condition="'$(MSBuildTargetsVerbose)' == 'true'" /> <GenerateTemporaryTargetAssembly CurrentProject="$(MSBuildProjectFullPath)" MSBuildBinPath="$(MSBuildBinPath)" ReferencePathTypeName="ReferencePath" CompileTypeName="Compile" GeneratedCodeFiles="@(_GeneratedCodeFiles)" ReferencePath="@(ReferencePath)" IntermediateOutputPath="$(IntermediateOutputPath)" AssemblyName="$(AssemblyName)" CompileTargetName="$(_CompileTargetNameForLocalType)" > </GenerateTemporaryTargetAssembly> <CreateItem Include="$(IntermediateOutputPath)$(TargetFileName)" > <Output TaskParameter="Include" ItemName="AssemblyForLocalTypeReference" /> </CreateItem> </Target> <!-- =========================================== CleanupTemporaryTargetAssembly =========================================== Name : CleanupTemporaryTargetAssembly --> <Target Name="CleanupTemporaryTargetAssembly" > <Message Text="Remove the temporary project and target assembly" Condition="'$(MSBuildTargetsVerbose)'=='true'" /> <Delete Files="@(AssemblyForLocalTypeReference)" Condition="Exists('%(Fullpath)')" /> </Target> <!-- ================================================================ SatelliteOnlyMarkupCompilePass2 ================================================================ Name : SatelliteOnlyMarkupCompilePass2 This target is invoked only when there is a xaml file which references local-type and no such xaml file is going to be embedded into main assembly. Condition: _RequireMCPass2ForSatelliteAssemblyOnly == true --> <Target Name="AddIntermediateAssemblyToReferenceList" > <CreateItem Include="@(IntermediateAssembly)" > <Output TaskParameter="Include" ItemName="AssemblyForLocalTypeReference" /> </CreateItem> </Target> <Target Name="SatelliteOnlyMarkupCompilePass2" Condition="'$(_RequireMCPass2ForSatelliteAssemblyOnly)' == 'true'" DependsOnTargets="AddIntermediateAssemblyToReferenceList;MarkupCompilePass2" > </Target> <!-- ============ Manifest Generation Related Properties, Targets ============== --> <PropertyGroup Condition="'$(IsApplication)' == 'true'" > <!-- Default settings which are required by Manifest generation. --> <!-- For a regular ClickOnce application, GenerateManifests depends on targets : GenerateApplicationManifest; and GenerateDeploymentManifest For a WinFX application, Two special issues have differnet dependsOn targets A. For a HostInBrowser application. B. For a ClickOnce application with SignManifests set to true. --> <WinFXGenerateManifestsDependsOn> GenerateApplicationManifest; GenerateDeploymentManifest </WinFXGenerateManifestsDependsOn> <WinFXGenerateManifestsDependsOn Condition="'$(SignManifests)' == 'true'" > GenerateApplicationManifest; ResignApplicationManifest; GenerateDeploymentManifest; SignDeploymentManifest </WinFXGenerateManifestsDependsOn> <!-- The GenerateApplicationManifest task doesn't put the dependent assembly's satellite assembly to the manifest record if the satellite assembly's culture is not same as main application project's UICulture setting. To workaround the limitation of the task design, WinFX project sets the default value '*' to TargetCulture. --> <TargetCulture Condition="'$(TargetCulture)'==''">*</TargetCulture> <FallbackCulture Condition="'$(UICulture)'!=''">$(UICulture)</FallbackCulture> </PropertyGroup> <PropertyGroup Condition="'$(HostInBrowser)' == 'true' and '$(IsApplication)' == 'true'" > <!-- Set default value for some related properties --> <!-- For Browser application, GenerateManifests depends on different targets. --> <WinFXGenerateManifestsDependsOn> HostInBrowserValidation; GenerateApplicationManifest; UpdateBrowserApplicationManifest; ResignApplicationManifest; GenerateDeploymentManifest; SignDeploymentManifest </WinFXGenerateManifestsDependsOn> <GenerateManifests Condition="'$(GenerateManifests)' == ''" >true</GenerateManifests> <GenerateClickOnceManifests Condition="'$(GenerateClickOnceManifests)' == ''">$(GenerateManifests)</GenerateClickOnceManifests> <!-- If 'install' is not set in project file, set it to false here. But if 'install' is set in project, don't change it now. Later the PropertyValidation target will check if it is correct or not. --> <Install Condition="'$(Install)'==''">false</Install> <!-- The valid values for TargetZone are : Internet, Intranet, LocalMachine, Custom User can set all above vaild values in project file. If this property is not set in project, for HostInBrowser, we set default value 'Internet' here. --> <TargetZone Condition="'$(TargetZone)' == ''">Internet</TargetZone> <!-- Change the deploy file exension for HostInBrowser application. --> <HostInBrowserExtension>.xbap</HostInBrowserExtension> <!-- Overwrite below properties which have been set in Microsoft.Common.targets. --> <TargetDeployManifestFileName>$(AssemblyName)$(HostInBrowserExtension)</TargetDeployManifestFileName> <TargetUrl Condition="'$(TargetUrl)'!=''">$(TargetUrl)/$(TargetDeployManifestFileName)</TargetUrl> <DeployManifestIdentity>$(ManifestIdentity)$(HostInBrowserExtension)</DeployManifestIdentity> <StartArguments Condition="'$(StartArguments)' == ''">-debug "$(MSBuildProjectDirectory)\bin\$(Configuration)\$(AssemblyName).xbap"</StartArguments> <StartArguments Condition="'$(DebugSecurityZoneURL)'!=''">$(StartArguments) -DebugSecurityZoneURL "$(DebugSecurityZoneURL)"</StartArguments> </PropertyGroup> <!-- ================================================================ GenerateManifests ================================================================ Override GenerateManifests target in Microsoft.Common.targets. Inject WinFX specific manifest related targets at right stages. --> <Target Name="GenerateManifests" Condition="'$(HostInBrowser)' == 'true' or '$(GenerateClickOnceManifests)'=='true' or '@(NativeReference)'!='' or '@(ResolvedIsolatedComModules)'!=''" DependsOnTargets="$(WinFXGenerateManifestsDependsOn)" /> <!-- Do some property value check before the real manifest generation task starts. WinFX.targets should care about the property setting for Browser application only. For a regular ClickOnce application, Microsoft.Common.targets is responsible for the setting validation. --> <Target Name="HostInBrowserValidation" Condition="'$(HostInBrowser)' == 'true'" > <Message Text="(in) Install: '$(Install)'" Condition="'$(MSBuildTargetsVerbose)' == 'true'" /> <!-- TODO: Will get error message from Build task resource so that the message is localizable and can be set an unique error ID. --> <Error Condition="'$(GenerateManifests)' != 'true'" Text="Property GenerateManifests should not be set a value other than true for a browser application." /> <Error Condition="'$(Install)' == 'true'" Text="Property Install and HostInBrowser should not be both set to true." /> <Error Condition="'$(SignManifests)' != 'true' or '$(ManifestKeyFile)' == '' or '$(ManifestCertificateThumbprint)' == ''" Text="The ClickOnce manifest for XAML Browser Applications must always be signed. You must specify properties: SignManifests (value set to True), ManifestKeyFile (with the name of your key file) and ManifestCertificateThumbprint (hexadecimal thumbprint value in SHA-1 format, of key file). Alternatively, you may use your IDE's Publish Wizard or Signing options." /> <Error Condition=" '$(PlatformTarget)' != '' and '$(PlatformTarget)' != 'AnyCpu' " Text="Cannot build a platform-specific XAML Browser Application. If HostInBrowser property is set to 'True', either do not set the PlatformTarget property or set it to 'AnyCpu'." /> </Target> <Target Name="UpdateBrowserApplicationManifest" Condition="'$(HostInBrowser)' == 'true'" > <!-- Update application manifest for browser hosted entry point --> <UpdateManifestForBrowserApplication ApplicationManifest="@(ApplicationManifest)" HostInBrowser="$(HostInBrowser)" /> </Target> <!-- Resign Application Manifest after update. _DeploymentResolvedManifestCertificateThumbprint property is set only when SignManifest is set to true. --> <Target Name="ResignApplicationManifest" Condition="'$(_DeploymentResolvedManifestCertificateThumbprint)'!= ''" > <Message Text="(in) ApplicationManifest: '@(ApplicationManifest)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) ManifestKeyFile: '$(ManifestKeyFile)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) _DeploymentResolvedManifestCertificateThumbprint: '$(_DeploymentResolvedManifestCertificateThumbprint)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <SignFile CertificateThumbprint="$(_DeploymentResolvedManifestCertificateThumbprint)" TimestampUrl="$(ManifestTimestampUrl)" SigningTarget="@(ApplicationManifest)"/> </Target> <!-- Sign Deployment Manifest if SignManifest is set to true. _DeploymentResolvedManifestCertificateThumbprint property is set only when SignManifest is set to true. --> <Target Name="SignDeploymentManifest" Condition=" '$(_DeploymentResolvedManifestCertificateThumbprint)' != '' " > <Message Text="(in) DeployManifest: '@(DeployManifest)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) ManifestKeyFile: '$(ManifestKeyFile)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(in) _DeploymentResolvedManifestCertificateThumbprint: '$(_DeploymentResolvedManifestCertificateThumbprint)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <SignFile CertificateThumbprint="$(_DeploymentResolvedManifestCertificateThumbprint)" TimestampUrl="$(ManifestTimestampUrl)" SigningTarget="@(DeployManifest)"/> </Target> <!-- ================================================================ FileClassification ================================================================ Classify baml and image files into different groups for Main assembly and satellite assembly respectively. --> <Target Name="FileClassification"> <FileClassifier Condition="'@(GeneratedBaml)@(Resource)@(Font)' != ''" SourceFiles="@(GeneratedBaml);@(Resource);@(Font)" Culture="$(UICulture)" OutputType="$(OutputType)" MainEmbeddedFiles="@(MainEmbeddedFiles)" SatelliteEmbeddedFiles="@(SatelliteEmbeddedFiles)" CLREmbeddedResource="@(CLREmbeddedResources)" CLRSatelliteEmbeddedResource="@(CLRSatelliteEmbeddedResources)" CLRResourceFiles="@(CLRResources)" > <Output ItemName="MainEmbeddedFiles" TaskParameter="MainEmbeddedFiles" /> <Output ItemName="SatelliteEmbeddedFiles" TaskParameter="SatelliteEmbeddedFiles" /> <Output ItemName="WinFXEmbeddedResource" TaskParameter="CLREmbeddedResource" /> <Output ItemName="WinFXEmbeddedResource" TaskParameter="CLRSatelliteEmbeddedResource" /> </FileClassifier> <Message Text="(out) EmbeddedFiles: '@(MainEmbeddedFiles)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <Message Text="(out) SatelliteEmbeddedFiles: '@(SatelliteEmbeddedFiles)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> </Target> <!-- ================================================================ MainResourcesGeneration ================================================================ --> <PropertyGroup> <!-- If the UICulture is not set, resources will be embedded into main assembly. keep $(AssemblyName).g.resources as resource name for this scenario. If the UICulture is set to some culture, all the localizable resources will be embedded into satellite assembly, and all the non-localizable resources will be embedded into main assembly. for this scenario, keep $(AssemblyName).g for localizable resources, $(AssemblyName).unlocalizable.g for unlocalizable resources --> <_ResourceNameInMainAssembly Condition="'$(UICulture)' == ''">$(AssemblyName).g.resources</_ResourceNameInMainAssembly> <_ResourceNameInMainAssembly Condition="'$(UICulture)' != ''">$(AssemblyName).unlocalizable.g.resources</_ResourceNameInMainAssembly> </PropertyGroup> <Target Name="MainResourcesGeneration" Inputs="@(MainEmbeddedFiles)" Outputs="$(IntermediateOutputPath)$(_ResourceNameInMainAssembly) "> <!-- This generates .resources file containing all the resources that are to be embedded in the main assembly and dont need to be localized --> <Message Text="(in) EmbeddedFiles: '@(MainEmbeddedFiles)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <ResourcesGenerator ResourceFiles="@(MainEmbeddedFiles)" OutputPath="$(IntermediateOutputPath)" OutputResourcesFile="$(IntermediateOutputPath)$(_ResourceNameInMainAssembly)" Condition="'@(MainEmbeddedFiles)' != ''"> <Output ItemName="ManifestResourceWithNoCulture" TaskParameter="OutputResourcesFile" /> <!-- Put the generated files in item FileWrites so that they can be cleaned up appropriately in a next Rebuild --> <Output ItemName="FileWrites" TaskParameter="OutputResourcesFile" /> </ResourcesGenerator> </Target> <!-- ================================================================ SatelliteResourceGeneration ================================================================ This target just takes the SatelliteEmbeddedFiles such as .baml, images, fonts. etc But not any $(Culture).resx and .resText etc. those files should have been handled by PrepareResource target. This target should output Item ManifestResourceWithCulture, which is then taken by CreateSatelliteAssemblies target. --> <Target Name="SatelliteResourceGeneration" Condition="'$(UICulture)' != ''" Inputs="@(SatelliteEmbeddedFiles)" Outputs="$(IntermediateOutputPath)$(AssemblyName).g.$(UICulture).resources"> <!-- This generates .resources file containing all the resources that are to be embedded in the satellite assembly and need to be localized. This task only runs if the default culture of the build is not NULL --> <Message Text="(in) SatelliteEmbeddedFiles: '@(SatelliteEmbeddedFiles)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> <ResourcesGenerator ResourceFiles="@(SatelliteEmbeddedFiles)" OutputPath="$(IntermediateOutputPath)" OutputResourcesFile="$(IntermediateOutputPath)$(AssemblyName).g.$(UICulture).resources" Condition="'@(SatelliteEmbeddedFiles)'!=''"> <Output ItemName="_SatelliteResourceFile" TaskParameter="OutputResourcesFile" /> <!-- Put the generated files in item FileWrites so that they can be cleaned up appropriately in a next Rebuild --> <Output ItemName="FileWrites" TaskParameter="OutputResourcesFile" /> </ResourcesGenerator> <Message Text="(out) _SatelliteResourceFile is '@(_SatelliteResourceFile)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> </Target> <!-- This target should always run after SatelliteResourceGeneration, so that it can generate the correct Item which contains right Culture attribute even for incremental build. --> <Target Name="GenerateResourceWithCultureItem" Condition="'$(UICulture)' != ''" > <CreateItem Include="@(_SatelliteResourceFile)" AdditionalMetadata="Culture=$(UICulture)" > <Output TaskParameter="Include" ItemName="ManifestResourceWithCulture" /> </CreateItem> <Message Text="(out) ManifestResourceWithCulture: '@(ManifestResourceWithCulture)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/> </Target> <!-- Overwrite some target and properties for Publish support --> <!-- PublishBuildDependsOn property is defined in Microsoft.Common.targets, but it doesn't handle WinFX resx file, since this resx file is not set into project file, but is generated at build time. For Publish Build, we need to make sure the $(Target).g.$(UICulture).resources is handled correctly. Add target "PrepareResourcesForSatelliteAssemblies" to the place prior to CreateSatelliteAssemblies. --> <PropertyGroup> <PublishBuildDependsOn> BuildOnlySettings; PrepareForBuild; ResolveReferences; PrepareResources; ResolveKeySource; PrepareResourcesForSatelliteAssemblies; GenerateSerializationAssemblies; CreateSatelliteAssemblies; </PublishBuildDependsOn> </PropertyGroup> <!-- SatelliteDllsProjectOutputGroup target is implemented in Microsoft.Common.targets, but it doesn't handle WinFX satellite assembly, since for WinFX, the $(targetname).g.$(UICulture).resx is not set into project file, but is generated at build time after Xaml file is compiled, (for some case, it is generated after the main dll is compiled). So overwrite this target, copy the content from Microsoft.Common.targets and inject the part for our UICulture support. --> <!-- ================================================================ SatelliteDllsProjectOutputGroup ================================================================ This target performs population of the Satellite Files project output group. --> <Target Name="SatelliteDllsProjectOutputGroup" DependsOnTargets="PrepareResourceNames" Outputs="@(SatelliteDllsProjectOutputGroupOutput)"> <CreateItem Include="$(IntermediateOutputPath)%(ResxWithCulture.Culture)\$(TargetName).resources.dll" AdditionalMetadata="TargetPath=%(ResxWithCulture.Culture)\$(TargetName).resources.dll" Condition="'@(ResxWithCulture)' != ''"> <Output ItemName="SatelliteDllsProjectOutputGroupOutputIntermediate" TaskParameter="Include" /> </CreateItem> <!-- This task is WinFX specific. --> <CreateItem Include="$(IntermediateOutputPath)$(UICulture)\$(TargetName).resources.dll" AdditionalMetadata="TargetPath=$(UICulture)\$(TargetName).resources.dll" Condition="'$(UICulture)' != ''"> <Output ItemName="SatelliteDllsProjectOutputGroupOutputIntermediate" TaskParameter="Include" /> </CreateItem> <!-- End of WinFX specific --> <CreateItem Include="$(IntermediateOutputPath)%(NonResxWithCulture.Culture)\$(TargetName).resources.dll" AdditionalMetadata="TargetPath=%(NonResxWithCulture.Culture)\$(TargetName).resources.dll" Condition="'@(NonResxWithCulture)' != ''"> <Output ItemName="SatelliteDllsProjectOutputGroupOutputIntermediate" TaskParameter="Include" /> </CreateItem> <CreateItem Include="$(IntermediateOutputPath)"> <Output ItemName="SatelliteDllsProjectOutputGroupRootRelativeUrlBaseIntermediate" TaskParameter="Include"/> </CreateItem> <!-- Convert intermediate items into final items; this way we can get the full path for each item. --> <CreateItem Include="@(SatelliteDllsProjectOutputGroupOutputIntermediate->'%(FullPath)')"> <Output ItemName="SatelliteDllsProjectOutputGroupOutput" TaskParameter="Include"/> </CreateItem> </Target> <!-- Other Targets --> <Target Name="CheckUid" Condition="'@(Page)@(ApplicationDefinition)'!=''"> <UidManager MarkupFiles="@(Page);@(ApplicationDefinition)" Task="Check" /> </Target> <Target Name="UpdateUid" Condition="'@(Page)@(ApplicationDefinition)'!=''"> <UidManager MarkupFiles="@(Page); @(ApplicationDefinition)" IntermediateDirectory ="$(IntermediateOutputPath)" Task="Update" /> </Target> <Target Name="RemoveUid" Condition="'@(Page)@(ApplicationDefinition)'!=''"> <UidManager MarkupFiles="@(Page); @(ApplicationDefinition)" IntermediateDirectory ="$(IntermediateOutputPath)" Task="Remove" /> </Target> <!-- ================================================================ MergeLocalizationDirectives ================================================================ Merge localization comments of single bamls into one file for the whole assembly. --> <Target Name="MergeLocalizationDirectives" Condition="'@(GeneratedLocalizationFiles)' !=''" Inputs="@(GeneratedLocalizationFiles)" Outputs="$(IntermediateOutputPath)$(AssemblyName).loc" > <MergeLocalizationDirectives GeneratedLocalizationFiles="@(GeneratedLocalizationFiles)" OutputFile="$(IntermediateOutputPath)$(AssemblyName).loc"/> <!-- Add the merged loc file into _NoneWithTargetPath so that it will be copied to the output directory --> <CreateItem Condition="Exists('$(IntermediateOutputPath)$(AssemblyName).loc')" Include="$(IntermediateOutputPath)$(AssemblyName).loc" AdditionalMetadata="CopyToOutputDirectory=PreserveNewest; TargetPath=$(AssemblyName).loc" > <Output ItemName="_NoneWithTargetPath" TaskParameter="Include"/> <Output ItemName="FileWrites" TaskParameter="Include"/> </CreateItem> </Target> <!-- End of other targets --> <!-- This is similar to AssignTargetPaths target in Microsoft.Common.targets. But it handles only the generated WinFXEmbeddedResource item type. After this target is done, SplitResourceByCulture target can take the right input and handle the resource correctly. --> <Target Name="AssignWinFXEmbeddedResource" Condition="'@(WinFXEmbeddedResource)' != ''" > <AssignTargetPath Files="@(WinFXEmbeddedResource)" RootFolder="$(MSBuildProjectDirectory)"> <Output TaskParameter="AssignedFiles" ItemName="_EmbeddedResourceWithTargetPath" /> </AssignTargetPath> </Target> <!-- End of the project file, Do not add any more propeties, items, targets etc. --> </Project>