Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemType validation exception #32

Open
jhermoso opened this issue May 18, 2016 · 0 comments
Open

ItemType validation exception #32

jhermoso opened this issue May 18, 2016 · 0 comments

Comments

@jhermoso
Copy link

Hi

related to this exception I thinks is for this If I'm not wrong this is the validation code:
private static void ValidateOutputItemType(OutputFile output, Project outputProject)
{
if (!string.IsNullOrEmpty(output.ItemType))
{
ICollection itemTypes = GetAvailableItemTypes(outputProject);
if (!itemTypes.Contains(output.ItemType))
{
throw new TransformationException(string.Format(CultureInfo.CurrentCulture, "ItemType {0} specified for output file {1} is not supported for project {2}", output.ItemType, output.Path, outputProject.FullName));
}
}
}
and the values for ItemType are :none, compile, content, and embebedresource.

former version was posible to set to an arbitrary string like "Page", or "ApplicationDefinition" to generate other things like xaml
is it possible to make a workarround of this validation?
thanks
Javier Hermoso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant