Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

The use of the Windows namespace is reserved
lprichar
#1 Posted : Tuesday, January 21, 2014 4:18:11 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/12/2013(UTC)
Posts: 41
Location: United States of America

Thanks: 4 times
I am receiving errors building a Windows 8.1 app in nCrunch for Visual Studio 2013. I needed to set the "Use build platform" to x86 (x64 works too) in nCrunch settings to get it to build with the SQLite dependency, but that is the only customization I've made.

I've looked through the common issues (http://www.ncrunch.net/documentation/troubleshooting_project-build-issues) and tried 'compatability mode' but I get the same errors. The errors I get start like this:

..\..\..\..\..\..\..\..\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets (1093)#1: The .winmd file 'platform.winmd' contains type 'Windows.UI.Xaml.Thickness'. The use of the Windows namespace is reserved.
..\..\..\..\..\..\..\..\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets (1093)#2: The .winmd file 'platform.winmd' contains type 'Windows.UI.Xaml.Thickness' outside its root namespace 'platform'. Make sure that all public types appear under a common root namespace that matches the output file name.
..\..\..\..\..\..\..\..\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets (1093)#3: The .winmd file 'platform.winmd' contains type 'Windows.UI.Xaml.CornerRadius'. The use of the Windows namespace is reserved.
..\..\..\..\..\..\..\..\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets (1093)#4: The .winmd file 'platform.winmd' contains type 'Windows.UI.Xaml.CornerRadius' outside its root namespace 'platform'. Make sure that all public types appear under a common root namespace that matches the output file name.

Any help would be greatly appreciated.

Thanks,
Lee
Remco
#2 Posted : Tuesday, January 21, 2014 8:55:33 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Lee -

I'm wondering if you could check something for me.

After NCrunch has failed to build your projects, can you try the following?

- Right click on the failed build, choose Advanced->Browse to workspace
- Find the generated .proj file inside the workspace for this project
- Open a command prompt, try to build the project using the command prompt .. i.e.: C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe myproject.csproj

This will help to establish whether the issue is related to how NCrunch has constructed the workspace, vs whether it is caused by something in the NCrunch environment.

If the MSBuild task fails, you'll have a useful way to deduct what is causing the problem. The generated .proj file in the workspace has seen several changes from the original file. If you slowly align the file with its original, you may be able to identify what NCrunch has done that the GenerateAppxManifest build target is unhappy about.


Cheers,

Remco
lprichar
#3 Posted : Friday, January 24, 2014 1:43:00 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/12/2013(UTC)
Posts: 41
Location: United States of America

Thanks: 4 times
Hey Remco,

Sorry, my MSBuild skills are not so strong, I'm going to need a little more hand holding. When I open a "VS2013 x64 Cross Tools Command Prompt" and cd to "C:\Users\Lee\AppData\Local\NCrunch\5580\296\MyWin8Project" and run "msbuild.exe MyWin8Project.csproj" then I get:



Build started 1/24/2014 8:40:35 AM.
Project "C:\Users\Lee\AppData\Local\NCrunch\5580\296\MyWin8Project\MyWin8Projec
t.csproj" on node 1 (default targets).
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(1635,5): error MSB3270: There was a mismatch between the processor architectur
e of the project being built "AMD64" and the processor architecture of the refe
rence "C:\Users\Lee\AppData\Local\NCrunch\5580\290\MyWin8Project\bin\x86
\Debug\MyWin8Project.Core.dll", "x86". This mismatch may cause runtime failur
es. Please consider changing the targeted processor architecture of your projec
t through the Configuration Manager so as to align the processor architectures
between your project and references, or take a dependency on references with a
processor architecture that matches the targeted processor architecture of your
project. [C:\Users\Lee\AppData\Local\NCrunch\5580\296\MyWin8Project\MyWin8Project
.csproj]
Done Building Project "C:\Users\Lee\AppData\Local\NCrunch\5580\296\MyWin8Project
\MyWin8Project.csproj" (default targets) -- FAILED.


Build FAILED.

"C:\Users\Lee\AppData\Local\NCrunch\5580\296\MyWin8Project\MyWin8Project.cs
proj" (default target) (1) ->
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(1635,5): error MSB3270: There was a mismatch between the processor architect
ure of the project being built "AMD64" and the processor architecture of the re
ference "C:\Users\Lee\AppData\Local\NCrunch\5580\290\MyWin8Project.Core\bin\x
86\Debug\MyWin8Project.Core.dll", "x86". This mismatch may cause runtime fail
ures. Please consider changing the targeted processor architecture of your proj
ect through the Configuration Manager so as to align the processor architecture
s between your project and references, or take a dependency on references with
a processor architecture that matches the targeted processor architecture of yo
ur project. [C:\Users\Lee\AppData\Local\NCrunch\5580\296\MyWin8Project\MyWin8Pr
oject.csproj]



However I can't msbuild.exe my main project, so I'm guessing I need more parameters or something. This is what I get when I "msbuild MyWin8Project.csproj" from c:\dev\MySolution\MyWin8Project\:



C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Archive
.csproj'. Please check to make sure that you have specified a valid combinatio
n of Configuration and Platform for this project. Configuration='Debug' Platf
orm='x64'. You may be seeing this message because you are trying to build a pr
oject without a solution file, and have specified a non-default Configuration o
r Platform that doesn't exist for this project. [C:\Dev\MyWin8Project\MyWin8Project.
Archive\MyWin8Project.Archive.csproj]
Done Building Project "C:\Dev\MyWin8Project\MyWin8Project.Archive\MyWin8Project.Archive.csp
roj" (default targets) -- FAILED.



Thanks for any assistance, Lee.
Remco
#4 Posted : Friday, January 24, 2014 11:47:27 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Lee -

Thanks for pulling out this information. It looks like this is being caused by an inconsistency between the project's default target platform and the platform required by its dependencies. The good news is that this should be easy to fix.

This documentation page should give you an accurate description of the problem along with some suggestions on how you can solve it. Let me know if this does the trick.


Cheers,

Remco

lprichar
#5 Posted : Friday, January 31, 2014 4:01:03 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/12/2013(UTC)
Posts: 41
Location: United States of America

Thanks: 4 times
Hey Remco,

I wish it were that easy. I've read over the document link and don't think it applies because we don't have any non-standard targets. I've included our .csproj file below.

I've upgraded to nCrunch 2.0 and I get the same problem.

By the way when I don't set the "Use build platform" I get the following error:

System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file:
The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "Microsoft.VCLibs, Version=12.0". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, x64, ARM".
The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "PDFTron.PDFNetWinRT, Version=6.1.1.21853". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "ARM, x64, x86".
at nCrunch.Compiler.RemoteBuildRunner.#=qXzNvTCtIxZESaFag7fAWLU1vKrAYmKCzd8OjiA_XItU=(FilePath #=qWv0vMXB_7kCqwvIOebpYJQ==, #=q$cspa5Rghq42fuA3GD0WscFjUdyTx8dquTMFh5acDAE= #=qeXULzObRcoRzFdfEj3_T8g==, String #=quzyrG3KF_AL08$noV$IimnaUxjaZl5YBwwa3ETTVwlc=, String #=q6rjdLlUz6suLMJHgH7vcZCHWgN3J$PREJL4NQbyCTQQ=, DirectoryPath #=q8ABhxe6wA3ET$3JtOIn8RA==, String #=qAcfdV3YjPJ5_fU7ON99acQ==)
at nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.#=qpQ3L$_sUiHktPx79bOWD6pbocST4aNAde4Uso69EJ6Y=(CallMethodMessage #=qtnX_jMWcaQGUVoLK4pkpo5XFIIqVpWXAy3hF5jnIXCs=)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
at nCrunch.TaskRunner.Ipc.RemoteInstance.#=qBIpcsPU3rhQq4VXoUpZxbA==[T](Byte[] #=qm6xJCQwtyULpEnZmmnY9jA==)
at nCrunch.TaskRunner.Ipc.RemoteInstance.Invoke(IMessage msg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at nCrunch.Compiler.IRemoteBuildRunner.AnalyseComponentBuild(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=q53HVqn$IMi6fy_dSEHAzidiu7dNMoYtIVT_bkkeKprU=.#=q6qCcXzhjyn4cvyh8J8SnIfdFhGJQV532yGTXkEhSGl9HHwwQDwNBeYCle4ekh1h7(IRemoteBuildRunner #=q_3xWpFE9CyjbLn84V7VUQ6BRdwFYffpMFMW1YzpxPMc=)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=qj29Co683BCxylmKm2VxB5T6cHQAGsTQK$gQQyhVA$4CEycNLR03XlUX190j1t_V3(Action`1 #=qbasxLAEC$whviXkzL8WKzA==, ProcessorArchitecture #=qumkg8VvzoUZWM_Bd1JAAkbyeeSMWlh5qOT3kTIvKN3M=, GridClientId #=quj9OZGAVeAZdMrKfGE_UHg==, IBuildableProject #=qrXvFYeLHbNgoHU6bwwcdag2JYoTFY$tD9qAGr6Eq_q0=)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate, ProcessorArchitecture processorArchitecture, VisualStudioVersion vsVersion)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.#=qVjH2kgnSWTvh$ditda8P9dziQvzmPofEKdTvyPta7rY=(ProcessorArchitecture #=qb5rRqBvRbVUbQwX1Gj1f6adKNGzlfZCc$qHTceHUVg4=)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, ISnapshotConfig snapshotConfig, VisualStudioVersion vsVersion)




Here is a copy of our .csproj file:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="(- BROKEN LINK -)">
<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>{B1DA27D9-3EB5-46A8-8412-67584068DC88}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OurProject.Windows8</RootNamespace>
<AssemblyName>OurProject.Windows8</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>SimpleMvvm-WindowsStore_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="Archive\OurProjectFile.cs" />
<Compile Include="Archive\OurProjectStorage.cs" />
<Compile Include="Common\ItemClickedConverter.cs" />
<Compile Include="Common\LayoutAwarePage.cs" />
<Compile Include="Common\NavigationHelper.cs" />
<Compile Include="Common\ObservableDictionary.cs" />
<Compile Include="Common\RelayCommand.cs" />
<Compile Include="Common\SuspensionManager.cs" />
<Compile Include="Controls\DetailsHeaderControl.xaml.cs">
<DependentUpon>DetailsHeaderControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\PDF\PdfOutputControl.xaml.cs">
<DependentUpon>PdfOutputControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\PDF\PdfPageDesignDataSource.cs" />
<Compile Include="Controls\QuestionnaireSectionsAppBarControl.xaml.cs">
<DependentUpon>QuestionnaireSectionsAppBarControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMAddressControl.xaml.cs">
<DependentUpon>FMAddressControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMAttachmentControl.xaml.cs">
<DependentUpon>FMAttachmentControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMCheckboxControl.xaml.cs">
<DependentUpon>FMCheckboxControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMComboBoxControl.xaml.cs">
<DependentUpon>FMComboBoxControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMControlBase.cs" />
<Compile Include="Controls\Questions\FMDatePickerControl.xaml.cs">
<DependentUpon>FMDatePickerControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMListControl.xaml.cs">
<DependentUpon>FMListControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMLocationControl.xaml.cs">
<DependentUpon>FMLocationControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMQuestionControl.xaml.cs">
<DependentUpon>FMQuestionControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMRangeControl.xaml.cs">
<DependentUpon>FMRangeControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMTableControl.xaml.cs">
<DependentUpon>FMTableControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMTextBoxControl.xaml.cs">
<DependentUpon>FMTextBoxControl.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Questions\FMToggleSwitchControl.xaml.cs">
<DependentUpon>FMToggleSwitchControl.xaml</DependentUpon>
</Compile>
<Compile Include="Converters\DateFromStringConverter.cs" />
<Compile Include="Converters\FMControlFromQuestionConverter.cs" />
<Compile Include="Converters\InputScopeFromAnswerFormatConverter.cs" />
<Compile Include="Converters\VisibilityFromPopulatedCollectionConverter.cs" />
<Compile Include="Converters\VisibilityFromPopulatedStringConverter.cs" />
<Compile Include="Converters\YesNoBooleanConverter.cs" />
<Compile Include="Pages\Add482Page.xaml.cs">
<DependentUpon>Add482Page.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\AssignmentDetailsPage.xaml.cs">
<DependentUpon>AssignmentDetailsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\AssignmentHistoryPage.xaml.cs">
<DependentUpon>AssignmentHistoryPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\AssignmentLocationsPage.xaml.cs">
<DependentUpon>AssignmentLocationsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\AssignmentsPage.xaml.cs">
<DependentUpon>AssignmentsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\DiscrepancyPage.xaml.cs">
<DependentUpon>DiscrepancyPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\DownloadUploadPage.xaml.cs">
<DependentUpon>DownloadUploadPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\FormsPage.xaml.cs">
<DependentUpon>FormsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\HistoricalMapsPage.xaml.cs">
<DependentUpon>HistoricalMapsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\LoginPage.xaml.cs">
<DependentUpon>LoginPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\MapsPage.xaml.cs">
<DependentUpon>MapsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\MediaManagementPage.xaml.cs">
<DependentUpon>MediaManagementPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\MyHistoricalMapsPage.xaml.cs">
<DependentUpon>MyHistoricalMapsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\PointOfInterestPage.xaml.cs">
<DependentUpon>PointOfInterestPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\QuestionnairePage.xaml.cs">
<DependentUpon>QuestionnairePage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\SamplingsPage.xaml.cs">
<DependentUpon>SamplingsPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\TargetLocationMapPage.xaml.cs">
<DependentUpon>TargetLocationMapPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\TargetLocationPage.xaml.cs">
<DependentUpon>TargetLocationPage.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\WorkItemPage.xaml.cs">
<DependentUpon>WorkItemPage.xaml</DependentUpon>
</Compile>
<Compile Include="Assets\AssetManager.cs" />
<Compile Include="Services\PdfService.cs" />
<Compile Include="ViewModels\Add482ViewModel.cs" />
<Compile Include="ViewModels\AssignmentViewModel.cs" />
<Compile Include="ViewModels\AvailableAssignmentViewModel.cs" />
<Compile Include="ViewModels\FormViewModel.cs" />
<Compile Include="ViewModels\GeoLocationViewModel.cs" />
<Compile Include="ViewModels\PointOfInterestViewModel.cs" />
<Compile Include="ViewModels\ActivityViewModel.cs" />
<Compile Include="ViewModels\AddressViewModel.cs" />
<Compile Include="ViewModels\AdjunctDataViewModel.cs" />
<Compile Include="ViewModels\AnnotationViewModel.cs" />
<Compile Include="ViewModels\AttachmentViewModel.cs" />
<Compile Include="ViewModels\Customer.cs" />
<Compile Include="ViewModels\DiscrepancyViewModel.cs" />
<Compile Include="ViewModels\FirmViewModel.cs" />
<Compile Include="ViewModels\FirmLocationViewModel.cs" />
<Compile Include="ViewModels\InspectionViewModel.cs" />
<Compile Include="ViewModels\InvestigatorViewModel.cs" />
<Compile Include="ViewModels\InvestigatorAssignmentsViewModel.cs" />
<Compile Include="ViewModels\MapDataViewModel.cs" />
<Compile Include="ViewModels\PropertyViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\ActionViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\AnswerViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\ExplanationViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\GroupViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\PageViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\PictureViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\QuestionBase.cs" />
<Compile Include="ViewModels\Questionnaires\QuestionViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\QuestionnaireViewModel.cs" />
<Compile Include="ViewModels\Questionnaires\SectionViewModel.cs" />
<Compile Include="ViewModels\TargetLocationViewModel.cs" />
<Compile Include="ViewModels\ViewModelExtensions.cs" />
<Compile Include="ViewModels\WorkItemViewModel.cs" />
<Compile Include="Views\CustomerView.xaml.cs">
<DependentUpon>CustomerView.xaml</DependentUpon>
</Compile>
<Compile Include="Locators\ViewModelLocator.cs" />
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\ICustomerServiceAgent.cs" />
<Compile Include="Services\MockCustomerServiceAgent.cs" />
<Compile Include="ViewModels\CustomerViewModel.cs" />
<Compile Include="ViewModels\MainPageViewModel.cs" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<Content Include="Assets\Form482.pdf" />
<None Include="ClassDiagram1.cd" />
<None Include="Controls\PDF\PdfPageDesignData.json" />
<None Include="Data\AttachmentDesignData.json" />
<None Include="packages.config" />
<Content Include="Assets\ScrollTest.jpg" />
<None Include="SimpleMvvm-WindowsStore_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Logo.scale-100.png" />
<Content Include="Assets\SmallLogo.scale-100.png" />
<Content Include="Assets\SplashScreen.scale-100.png" />
<Content Include="Assets\StoreLogo.scale-100.png" />
<Content Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Common\StandardStyles.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\DetailsHeaderControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\PDF\PdfOutputControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\QuestionnaireSectionsAppBarControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\Questions\FMAddressControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMAttachmentControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\Questions\FMCheckboxControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMComboBoxControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMControlResources.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMDatePickerControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\Questions\FMListControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\Questions\FMLocationControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMQuestionControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Controls\Questions\FMRangeControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMTableControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMTextBoxControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\Questions\FMToggleSwitchControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Pages\Add482Page.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\AssignmentDetailsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\AssignmentHistoryPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\AssignmentLocationsPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Pages\AssignmentsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\DiscrepancyPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\DownloadUploadPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Pages\FormsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\HistoricalMapsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\LoginPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\MainPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\MapsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\MediaManagementPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\MyHistoricalMapsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\PointOfInterestPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\QuestionnairePage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\SamplingsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\TargetLocationMapPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\TargetLocationPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\WorkItemPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\CustomerView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<SDKReference Include="BehaviorsXamlSDKManaged, Version=12.0">
<Name>Behaviors SDK %28XAML%29</Name>
</SDKReference>
<SDKReference Include="Microsoft.VCLibs, version=12.0">
<Name>Microsoft Visual C++ 2013 Runtime Package for Windows</Name>
</SDKReference>
<SDKReference Include="PDFTron.PDFNetWinRT, Version=6.1.1.21853">
<Name>PDFNet for Windows Store apps</Name>
</SDKReference>
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.5.0.8\lib\netcore45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="SimpleMvvmToolkit-Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=20fad5ed49a0c3b4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\SimpleMvvmToolkit.5.0.1.0\lib\win81\SimpleMvvmToolkit-Common.dll</HintPath>
</Reference>
<Reference Include="SimpleMvvmToolkit-WindowsStore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=20fad5ed49a0c3b4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\SimpleMvvmToolkit.5.0.1.0\lib\win81\SimpleMvvmToolkit-WindowsStore.dll</HintPath>
</Reference>
<Reference Include="System.Composition.AttributedModel, Version=1.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Composition.1.0.20\lib\portable-net45+win8\System.Composition.AttributedModel.dll</HintPath>
</Reference>
<Reference Include="System.Composition.Convention, Version=1.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Composition.1.0.20\lib\portable-net45+win8\System.Composition.Convention.dll</HintPath>
</Reference>
<Reference Include="System.Composition.Hosting, Version=1.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Composition.1.0.20\lib\portable-net45+win8\System.Composition.Hosting.dll</HintPath>
</Reference>
<Reference Include="System.Composition.Runtime, Version=1.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Composition.1.0.20\lib\portable-net45+win8\System.Composition.Runtime.dll</HintPath>
</Reference>
<Reference Include="System.Composition.TypedParts, Version=1.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Composition.1.0.20\lib\portable-net45+win8\System.Composition.TypedParts.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OurProject.Archive\OurProject.Archive.csproj">
<Project>{5dad3cc1-b011-4ef4-8f55-9852fe0eff05}</Project>
<Name>OurProject.Archive</Name>
</ProjectReference>
<ProjectReference Include="..\OurProject.Models\OurProject.Models\OurProject.Models.csproj">
<Project>{756f8c04-ebaa-4fbd-9390-b25321052b5c}</Project>
<Name>OurProject.Models</Name>
</ProjectReference>
<ProjectReference Include="..\OurProject.Protocols\OurProject.Protocols.csproj">
<Project>{11c0b84a-4411-4be6-9062-259ac600e388}</Project>
<Name>OurProject.Protocols</Name>
</ProjectReference>
<ProjectReference Include="..\OurProject.Windows8.Core\OurProject.Windows8.Core.csproj">
<Project>{70674520-8b30-44c6-b7f7-a93d27419756}</Project>
<Name>OurProject.Windows8.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
<VisualStudioVersion>12.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Remco
#6 Posted : Friday, January 31, 2014 10:24:43 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Sorry - I just realised I misunderstood the platform/configuration setup within your solution. The platform related issues you're setting from MSBuild are a red herring.

What I think we need to do is try and get the command line MSBuild action to build the project using the same parameters NCrunch would. Try the following:

C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe MyWin8Project.csproj /p:Platform=x86

Having the dump of your project file is really, really useful. Would it be possible at all to also get a dump of the project file that NCrunch has generated in the workspace? We can then compare the two files and look for oddities. My theory at the moment is that NCrunch is modifying the project and including some kind of explicit reference to platform.winmd, which is causing the build target to mistake the platform reference for a normal reference. If this the case, the difference between the project files should be enlightening.

lprichar
#7 Posted : Friday, January 31, 2014 10:51:20 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/12/2013(UTC)
Posts: 41
Location: United States of America

Thanks: 4 times
Well, running with the /p:Platform=x86 parameter ends up giving the same errors as I posted in #3 above. Results below.

I would include the NCrunch generated project but I can't find it. I tried "Advanced->Browse to workspace last build for selected project" but it doesn't do anything. Maybe because it was never built. I tried navigating to "C:\Users\Lee\AppData\Local\NCrunch" but there's nothing there. Did the temp location change?

Thanks,
Lee



c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8>"C:\Program Files (x86)\MSBuild\12.0\Bin\
msbuild.exe" MyWin8Project.Windows8.csproj /p:Platform=x86
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.34003]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 1/31/2014 5:40:13 PM.
Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" on node
1 (default targets).
Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (1) is
building "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Archive\MyWin8Project.Archive.csproj" (2) on n
ode 1 (default targets).
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Archive
.csproj'. Please check to make sure that you have specified a valid combinatio
n of Configuration and Platform for this project. Configuration='Debug' Platf
orm='x86'. You may be seeing this message because you are trying to build a pr
oject without a solution file, and have specified a non-default Configuration o
r Platform that doesn't exist for this project. [c:\Dev\MyWin8Project.Windows8\MyWin8Project.
Archive\MyWin8Project.Archive.csproj]
Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Archive\MyWin8Project.Archive.csp
roj" (default targets) -- FAILED.

Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (1) is
building "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\MyWin8Project.Models.cspr
oj" (3) on node 1 (default targets).
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Models.
csproj'. Please check to make sure that you have specified a valid combination
of Configuration and Platform for this project. Configuration='Debug' Platfo
rm='x86'. You may be seeing this message because you are trying to build a pro
ject without a solution file, and have specified a non-default Configuration or
Platform that doesn't exist for this project. [c:\Dev\MyWin8Project.Windows8\MyWin8Project.M
odels\MyWin8Project.Models\MyWin8Project.Models.csproj]
Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\FITMA
P.Models.csproj" (default targets) -- FAILED.

Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (1) is
building "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Protocols.csproj" (4)
on node 1 (default targets).
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Protoco
ls.csproj'. Please check to make sure that you have specified a valid combinat
ion of Configuration and Platform for this project. Configuration='Debug' Pla
tform='x86'. You may be seeing this message because you are trying to build a
project without a solution file, and have specified a non-default Configuration
or Platform that doesn't exist for this project. [c:\Dev\MyWin8Project.Windows8\FITMA
P.Protocols\MyWin8Project.Protocols.csproj]
Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Protocols
.csproj" (default targets) -- FAILED.

Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (1) is
building "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windows8.Core.cspr
oj" (5) on node 1 (default targets).
Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windows8.Core.cspro
j" (5) is building "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\MyWin8Project.M
odels.csproj" (3:2) on node 1 (default targets).
PrepareForBuild:
Creating directory "obj\x86\Debug\".
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output fi
les are up-to-date with respect to the input files.
CoreCompile:
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702 /
nostdlib+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\F
ramework\.NETPortable\v4.0\Profile\Profile136\mscorlib.dll" /reference:c:\Dev
\MyWin8Project.Windows8\packages\Newtonsoft.Json.5.0.8\lib\portable-net40+sl4+wp7+wi
n8\Newtonsoft.Json.dll /reference:"C:\Program Files (x86)\Reference Assemblie
s\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile136\mscorlib.dll" /ref
erence:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETP
ortable\v4.0\Profile\Profile136\System.Core.dll" /reference:"C:\Program Files
(x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Pro
file136\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\M
icrosoft\Framework\.NETPortable\v4.0\Profile\Profile136\System.Net.dll" /refe
rence:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPo
rtable\v4.0\Profile\Profile136\System.Runtime.Serialization.dll" /reference:"
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\
v4.0\Profile\Profile136\System.ServiceModel.dll" /reference:"C:\Program Files
(x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Pro
file136\System.ServiceModel.Web.dll" /reference:"C:\Program Files (x86)\Refer
ence Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile136\Syst
em.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft
\Framework\.NETPortable\v4.0\Profile\Profile136\System.Xml.Serialization.dll"
/debug+ /filealign:512 /out:obj\x86\Debug\MyWin8Project.Models.dll /resource:Resour
ces\GeneralSprouts.js,MyWin8Project.Models.Resources.GeneralSprouts.js /target:libra
ry /utf8output Activity.cs Address.cs AdjunctData.cs Annotation.cs Assignment
.cs AssignmentInfo.cs AssignmentState.cs Attachment.cs AttachmentType.cs Avai
lableAssignment.cs Discrepancy.cs Firm.cs FirmLocation.cs Forms\Form.cs Forms
\Form482.cs Forms\FormBase.cs Forms\PdfFieldLocationAttribute.cs GeoLocation.
cs Inspection.cs InspectionInfo.cs InspectionState.cs Investigator.cs Investi
gatorAssignments.cs MapData.cs PointOfInterest.cs Property.cs Questionnaires\
Action.cs Questionnaires\Answer.cs Questionnaires\AnswerFormat.cs Questionnai
res\AnswerType.cs Questionnaires\DisplayHint.cs Questionnaires\Explanation.cs
Questionnaires\Picture.cs Questionnaires\Group.cs Questionnaires\Page.cs Que
stionnaires\Question.cs Questionnaires\Questionnaire.cs Questionnaires\Sectio
n.cs Resources\ResourceManager.cs TargetLocation.cs TestFactory.cs WorkItem.c
s WorkItemType.cs Properties\AssemblyInfo.cs SampleData.cs "C:\Users\Lee\AppD
ata\Local\Temp\.NETPortable,Version=v4.0,Profile=Profile136.AssemblyAttribute
s.cs"
_CopyFilesMarkedCopyLocal:
Copying file from "c:\Dev\MyWin8Project.Windows8\packages\Newtonsoft.Json.5.0.8\lib\
portable-net40+sl4+wp7+win8\Newtonsoft.Json.dll" to "Newtonsoft.Json.dll".
Copying file from "c:\Dev\MyWin8Project.Windows8\packages\Newtonsoft.Json.5.0.8\lib\
portable-net40+sl4+wp7+win8\Newtonsoft.Json.xml" to "Newtonsoft.Json.xml".
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(3528,5): error MSB3023: No destination specified for Copy. Please supply eithe
r "DestinationFiles" or "DestinationFolder". [c:\Dev\MyWin8Project.Windows8\MyWin8Project.Mod
els\MyWin8Project.Models\MyWin8Project.Models.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(4182,5): error MSB4044: The "FindUnderPath" task was not given a value for the
required parameter "Path". [c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models
\MyWin8Project.Models.csproj]
Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\FITMA
P.Models.csproj" (default targets) -- FAILED.

Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windows8.Core.cspro
j" (5) is building "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Protocols.cs
proj" (4:2) on node 1 (default targets).
PrepareForBuild:
Creating directory "obj\x86\Debug\".
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(4182,5): error MSB4044: The "FindUnderPath" task was not given a value for the
required parameter "Path". [c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Pro
tocols.csproj]
Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Protocols
.csproj" (default targets) -- FAILED.

Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windo
ws8.Core.csproj" (default targets) -- FAILED.

Done Building Project "c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.c
sproj" (default targets) -- FAILED.


Build FAILED.

"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (default target
) (1) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Archive\MyWin8Project.Archive.csproj" (default target)
(2) ->
(_CheckForInvalidConfigurationAndPlatform target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Archi
ve.csproj'. Please check to make sure that you have specified a valid combinat
ion of Configuration and Platform for this project. Configuration='Debug' Pla
tform='x86'. You may be seeing this message because you are trying to build a
project without a solution file, and have specified a non-default Configuration
or Platform that doesn't exist for this project. [c:\Dev\MyWin8Project.Windows8\FITMA
P.Archive\MyWin8Project.Archive.csproj]


"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (default target
) (1) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\MyWin8Project.Models.csproj" (defa
ult target) (3) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Model
s.csproj'. Please check to make sure that you have specified a valid combinati
on of Configuration and Platform for this project. Configuration='Debug' Plat
form='x86'. You may be seeing this message because you are trying to build a p
roject without a solution file, and have specified a non-default Configuration
or Platform that doesn't exist for this project. [c:\Dev\MyWin8Project.Windows8\MyWin8Project
.Models\MyWin8Project.Models\MyWin8Project.Models.csproj]


"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (default target
) (1) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Protocols.csproj" (default targ
et) (4) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(615,5): error : The OutputPath property is not set for project 'MyWin8Project.Proto
cols.csproj'. Please check to make sure that you have specified a valid combin
ation of Configuration and Platform for this project. Configuration='Debug' P
latform='x86'. You may be seeing this message because you are trying to build
a project without a solution file, and have specified a non-default Configurati
on or Platform that doesn't exist for this project. [c:\Dev\MyWin8Project.Windows8\FIT
MAP.Protocols\MyWin8Project.Protocols.csproj]


"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (default target
) (1) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windows8.Core.csproj" (defa
ult target) (5) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\MyWin8Project.Models.csproj" (defa
ult target) (3:2) ->
(CopyFilesToOutputDirectory target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(3528,5): error MSB3023: No destination specified for Copy. Please supply eit
her "DestinationFiles" or "DestinationFolder". [c:\Dev\MyWin8Project.Windows8\MyWin8Project.M
odels\MyWin8Project.Models\MyWin8Project.Models.csproj]


"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (default target
) (1) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windows8.Core.csproj" (defa
ult target) (5) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Models\MyWin8Project.Models.csproj" (defa
ult target) (3:2) ->
(_CleanGetCurrentAndPriorFileWrites target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(4182,5): error MSB4044: The "FindUnderPath" task was not given a value for t
he required parameter "Path". [c:\Dev\MyWin8Project.Windows8\MyWin8Project.Models\MyWin8Project.Mode
ls\MyWin8Project.Models.csproj]


"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8\MyWin8Project.Windows8.csproj" (default target
) (1) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Windows8.Core\MyWin8Project.Windows8.Core.csproj" (defa
ult target) (5) ->
"c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.Protocols.csproj" (default targ
et) (4:2) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(4182,5): error MSB4044: The "FindUnderPath" task was not given a value for t
he required parameter "Path". [c:\Dev\MyWin8Project.Windows8\MyWin8Project.Protocols\MyWin8Project.P
rotocols.csproj]

0 Warning(s)
6 Error(s)




Remco
#8 Posted : Saturday, February 1, 2014 12:05:11 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Lee -

If the browse to workspace option doesn't work, this would suggest that NCrunch isn't actually getting to the build step - probably it's failing to even Analyse the project. When you look at the errors showing in the Tests Window, does this say anything about there being a failure to load the project?

Is there any chance you could submit a bug report right after you've hit the point of failure? Perhaps I can dig something useful out of the log file.

I've had a go at building a sample solution with similar library references to what you've used, but so far no luck in reproducing the issue. Something is deeply wrong here. If there's any chance you can cut the issue down to a code sample you can share with me, I should be able to help you with a fix in short order.


Cheers,

Remco
lprichar
#9 Posted : Friday, February 7, 2014 1:56:51 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/12/2013(UTC)
Posts: 41
Location: United States of America

Thanks: 4 times
Hey Remco,

I was able to reproduce in a clean project. I shared the link with you on Dropbox. Please let me know if you did not receive it.

Just to reiterate: the project under test needs to be built as x86 because one of the SDK's is build only for x86. I haven't referenced the offending SDK (ArcGIS) in my sample project because it requires signing up for a beta program.

Thanks for your assistance,
Lee
Remco
#10 Posted : Friday, February 7, 2014 3:25:24 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Great stuff! Thanks Lee.

I've had a quick look over this, and a processor architecture build issue is very clearly showing for me when NCrunch tries to build the solution. This problem does not show when building with the IDE.

I'm not 100% sure if this is the same problem you reported earlier, as the message looks quite different, but I can provide you with a way to make this work and an explanation for why it is behaving this way.

If you open the NCrunchWin8Fail.csproj file in a text editor, you'll see the topmost property group:

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

...

</PropertyGroup>

Notice the default setting here for the 'Platform' property. This will set the build platform to AnyCPU whenever the project is built using its defaults (for example, if you try to build the project using command line MSBuild or NCrunch).

Visual Studio doesn't use these defaults, because it always sets the Platform and Configuration properties to specific values that are determined by the Configuration Manager inside the IDE. This allows some projects to build using Visual Studio even through their default properties are completely invalid and would never normally work. Thus Visual Studio masks a problem with the project file.

It's disturbingly easy to end up in this situation because of the way that VS manipulates project files when you use the Configuration Manager. But the effects become very apparent when using a build tool such as NCrunch.

There are two ways you can solve this problem:

1. Set the 'Use build platform' NCrunch project-level configuration setting for the projects involved to 'x86'. In this way, NCrunch will pass 'x86' inside the Platform property, overriding the project defaults the same way that Visual Studio does.
2. Manually edit the project file to set the default to a sensible value. This basically just involves changing the 'AnyCPU' property value to 'x86' at the top of the file.

Generally I recommend the second solution, as this helps to make your build system more resilient and better able to deal with situations outside of NCrunch. Not all solutions are built using Visual Studio - for example, you may choose at some stage to set up a CI server that invokes MSBuild directly.

I hope this solves the problem for you. Let me know if this wasn't the cause of your initial problem or if you need any further help.


Cheers,

Remco
1 user thanked Remco for this useful post.
lprichar on 2/13/2014(UTC)
lprichar
#11 Posted : Thursday, February 13, 2014 3:56:42 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/12/2013(UTC)
Posts: 41
Location: United States of America

Thanks: 4 times
That did it! The original error message I reported was from attempting #1. #2 did it. Thank you so much.
Remco
#12 Posted : Thursday, February 13, 2014 10:38:14 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Great! Thanks for confirming that this solved the problem.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 1.083 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download